Ignore:
Timestamp:
Oct 27, 2009, 8:29:02 PM (12 years ago)
Author:
charles
Message:

(trunk libT) fix #2534: if port forwarding is disabled, tr_sessionClose() closes a random file descriptor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/natpmp.c

    r7658 r9418  
    8282    nat->state = TR_NATPMP_DISCOVER;
    8383    nat->port = -1;
     84    nat->natpmp.s = -1; /* socket */
    8485    return nat;
    8586}
     
    9091    if( nat )
    9192    {
    92         closenatpmp( &nat->natpmp );
     93        if( nat->natpmp.s >= 0 )
     94            tr_netCloseSocket( nat->natpmp.s );
    9395        tr_free( nat );
    9496    }
Note: See TracChangeset for help on using the changeset viewer.