Fix a crash that I introduced with the shared port code.

This commit is contained in:
Josh Elsasser 2006-01-14 04:47:38 +00:00
parent 3205798019
commit c2d5fe251e
1 changed files with 5 additions and 0 deletions

View File

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