mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Fix a crash that I introduced with the shared port code.
This commit is contained in:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user