Fix a crash that I introduced with the shared port code.
This commit is contained in:
parent
3205798019
commit
c2d5fe251e
|
@ -459,6 +459,11 @@ static inline int parseBuf( tr_torrent_t * tor, tr_peer_t * peer,
|
|||
return 1;
|
||||
}
|
||||
|
||||
if( peer->pos < 68 )
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
if( memcmp( &p[28], inf->hash, 20 ) )
|
||||
{
|
||||
peer_dbg( "GET handshake, wrong torrent hash" );
|
||||
|
|
Loading…
Reference in New Issue