Changeset 12136


Ignore:
Timestamp:
Mar 11, 2011, 7:28:44 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) #4106 "Assert in buildHandshakeMessage, r12131" -- probable fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/handshake.c

    r12121 r12136  
    218218    const uint8_t    * torrentHash = tr_cryptoGetTorrentHash( handshake->crypto );
    219219    const tr_torrent * tor = tr_torrentFindFromHash( handshake->session, torrentHash );
    220     const uint8_t    * peer_id = tor ? tor->peer_id : tr_getPeerId( handshake->session );
     220    const uint8_t    * peer_id = tor && *tor->peer_id ? tor->peer_id : tr_getPeerId( handshake->session );
    221221
    222222    memcpy( walk, HANDSHAKE_NAME, HANDSHAKE_NAME_LEN );
Note: See TracChangeset for help on using the changeset viewer.