mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
fix r3506 bug that prevented incoming peers from connecting
This commit is contained in:
parent
799954843e
commit
ed6ffe39e4
1 changed files with 1 additions and 1 deletions
|
@ -654,7 +654,7 @@ readPeerId( tr_handshake * handshake, struct evbuffer * inbuf )
|
|||
{
|
||||
int connectedToSelf;
|
||||
char * client;
|
||||
const size_t sizeNeeded = HANDSHAKE_SIZE - PEER_ID_LEN;
|
||||
const size_t sizeNeeded = PEER_ID_LEN;
|
||||
if( EVBUFFER_LENGTH(inbuf) < sizeNeeded )
|
||||
return READ_MORE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue