Changeset 9870


Ignore:
Timestamp:
Jan 4, 2010, 10:15:01 PM (12 years ago)
Author:
charles
Message:

(1.7x libT) backport to 1.7x branch: r9418 #2534 "if port forwarding is disabled, tr_sessionClose() closes a random file descriptor"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7x/libtransmission/natpmp.c

    r7658 r9870  
    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_netClose( nat->natpmp.s );
    9395        tr_free( nat );
    9496    }
Note: See TracChangeset for help on using the changeset viewer.