mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
fix a nasty error with fallback unencrypted peer connections.
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user