1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +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; int connectedToSelf;
char * client; char * client;
const size_t sizeNeeded = HANDSHAKE_SIZE - PEER_ID_LEN; const size_t sizeNeeded = PEER_ID_LEN;
if( EVBUFFER_LENGTH(inbuf) < sizeNeeded ) if( EVBUFFER_LENGTH(inbuf) < sizeNeeded )
return READ_MORE; return READ_MORE;