Changeset 800 for trunk/libtorrent/src/protocol/handshake.cc
- Timestamp:
- 11/04/06 11:05:28 (6 years ago)
- Files:
-
- 1 modified
-
trunk/libtorrent/src/protocol/handshake.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtorrent/src/protocol/handshake.cc
r799 r800 418 418 // Have the download from the encrypted handshake, make sure it 419 419 // matches the BT handshake. 420 if (m_download->info()->hash() != (char*)m_readBuffer.position())420 if (m_download->info()->hash().not_equal_to((char*)m_readBuffer.position())) 421 421 throw handshake_error(ConnectionManager::handshake_failed, EH_InvalidValue); 422 422 … … 429 429 430 430 } else { 431 if (m_download->info()->hash() != (char*)m_readBuffer.position())431 if (m_download->info()->hash().not_equal_to((char*)m_readBuffer.position())) 432 432 throw handshake_error(ConnectionManager::handshake_failed, EH_InvalidValue); 433 433 }
