fix a nasty error with fallback unencrypted peer connections.
This commit is contained in:
parent
b704654275
commit
216ee3f52b
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue