Changeset 11005


Ignore:
Timestamp:
Jul 13, 2010, 1:35:58 PM (12 years ago)
Author:
charles
Message:

(2.0x libT) #3423 "crash when saving prefs" -- fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/libtransmission/session.c

    r10751 r11005  
    10001000tr_sessionSetPeerPort( tr_session * session, tr_port port )
    10011001{
    1002     assert( tr_isSession( session ) );
    1003 
    1004     if( session->peerPort != port )
     1002    if( tr_isSession( session ) && ( session->peerPort != port ) )
    10051003    {
    10061004        setPeerPort( session, port );
     
    10111009tr_sessionGetPeerPort( const tr_session * session )
    10121010{
    1013     assert( tr_isSession( session ) );
    1014 
    1015     return session->peerPort;
     1011    return tr_isSession( session ) ? session->peerPort : 0;
    10161012}
    10171013
Note: See TracChangeset for help on using the changeset viewer.