Changeset 11006


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r10983 r11006  
    10131013tr_sessionSetPeerPort( tr_session * session, tr_port port )
    10141014{
    1015     assert( tr_isSession( session ) );
    1016 
    1017     if( session->private_peer_port != port )
     1015    if( tr_isSession( session ) && ( session->private_peer_port != port ) )
    10181016    {
    10191017        setPeerPort( session, port );
     
    10241022tr_sessionGetPeerPort( const tr_session * session )
    10251023{
    1026     assert( tr_isSession( session ) );
    1027 
    1028     return session->private_peer_port;
     1024    return tr_isSession( session ) ? session->private_peer_port : 0;
    10291025}
    10301026
Note: See TracChangeset for help on using the changeset viewer.