fix a nasty error with fallback unencrypted peer connections.

This commit is contained in:
Charles Kerr 2007-10-22 23:31:03 +00:00
parent b704654275
commit 216ee3f52b
1 changed files with 1 additions and 0 deletions

View File

@ -971,6 +971,7 @@ gotError( struct bufferevent * evbuf UNUSED, short what, void * arg )
dbgmsg( handshake, "handshake failed, trying plaintext..." );
int msgSize;
uint8_t * msg = buildHandshakeMessage( handshake, &msgSize );
handshake->haveSentBitTorrentHandshake = 1;
setReadState( handshake, AWAITING_HANDSHAKE );
tr_peerIoWrite( handshake->io, msg, msgSize );
tr_free( msg );