From b5989bec8a86ef59f63af672f5a372019f1ebc5c Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 4 Sep 2026 20:50:52 -0400 Subject: [PATCH] fixed typo --- libi2pd_client/Torrents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd_client/Torrents.cpp b/libi2pd_client/Torrents.cpp index 5f212a3d..5d580504 100644 --- a/libi2pd_client/Torrents.cpp +++ b/libi2pd_client/Torrents.cpp @@ -1752,7 +1752,7 @@ namespace torrents LogPrint (eLogDebug, "Torrents: ut_metadata ", m_RemoteMetadataSize, " bytes of info received"); uint8_t digest[SHA_DIGEST_LENGTH]; SHA1 (m_RemoteMetadata.data (), m_RemoteMetadata.size (), digest); - if (memcmp (m_Torrent->GetInfoHash ().data (), digest, SHA_DIGEST_LENGTH)) + if (!memcmp (m_Torrent->GetInfoHash ().data (), digest, SHA_DIGEST_LENGTH)) GetTorrentsTunnel ()->UpdateTorrentInfo (m_Torrent, std::string_view ((const char *)m_RemoteMetadata.data (), m_RemoteMetadata.size ())); else LogPrint (eLogError, "Torrents: ut_metadata info doesn't match infoHash");