1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

removed an assertion that depended on valid input from a peer in order to be true.

This commit is contained in:
Charles Kerr 2007-10-05 05:53:00 +00:00
parent b6483cbf3f
commit 3a6985195d

View file

@ -653,7 +653,6 @@ readHandshake( tr_handshake * handshake, struct evbuffer * inbuf )
} }
else /* outgoing */ else /* outgoing */
{ {
assert( tr_torrentExists( handshake->handle, hash ) );
assert( tr_peerIoHasTorrentHash( handshake->io ) ); assert( tr_peerIoHasTorrentHash( handshake->io ) );
if( memcmp( hash, tr_peerIoGetTorrentHash(handshake->io), SHA_DIGEST_LENGTH ) ) if( memcmp( hash, tr_peerIoGetTorrentHash(handshake->io), SHA_DIGEST_LENGTH ) )
{ {