Changeset 3056


Ignore:
Timestamp:
Sep 13, 2007, 3:26:15 AM (15 years ago)
Author:
charles
Message:

fix memory corruption error that occurred if a peer disconnected prematurely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/encryption/libtransmission/handshake.c

    r3049 r3056  
    824824fprintf( stderr, "handshake %p: got error [%s]; what==%hd... state was [%s]\n", handshake, strerror(errno), what, getStateName(handshake->state) );
    825825
    826 
    827826    /* if the error happened while we were sending a public key, we might
    828827     * have encountered a peer that doesn't do encryption... reconnect and
     
    836835        sendPlaintextHandshake( handshake );
    837836    }
    838     else fireDoneCB( handshake, FALSE );
     837    else
     838    {
     839        tr_peerIoSetIOFuncs( handshake->io, NULL, NULL, NULL, NULL );
     840        fireDoneCB( handshake, FALSE );
     841    }
    839842}
    840843
Note: See TracChangeset for help on using the changeset viewer.