1
0
Fork 0
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:
Charles Kerr 2007-10-23 15:53:57 +00:00
parent 799954843e
commit ed6ffe39e4

View file

@ -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;