Browse Source

fixed typo

pull/2028/head
orignal 10 months ago
parent
commit
6bd1ee36f7
  1. 4
      libi2pd/I2NPProtocol.cpp

4
libi2pd/I2NPProtocol.cpp

@ -378,7 +378,7 @@ namespace i2p
LogPrint (eLogWarning, "I2NP: Failed to decrypt tunnel build record"); LogPrint (eLogWarning, "I2NP: Failed to decrypt tunnel build record");
return false; return false;
} }
if (memcmp ((const uint8_t *)i2p::context.GetIdentHash (), clearText + ECIES_BUILD_REQUEST_RECORD_NEXT_IDENT_OFFSET, 32)) // if next ident is now ours if (!memcmp ((const uint8_t *)i2p::context.GetIdentHash (), clearText + ECIES_BUILD_REQUEST_RECORD_NEXT_IDENT_OFFSET, 32)) // if next ident is now ours
{ {
LogPrint (eLogWarning, "I2NP: Next ident is ours in tunnel build record"); LogPrint (eLogWarning, "I2NP: Next ident is ours in tunnel build record");
return false; return false;
@ -571,7 +571,7 @@ namespace i2p
LogPrint (eLogWarning, "I2NP: Can't decrypt short request record ", i); LogPrint (eLogWarning, "I2NP: Can't decrypt short request record ", i);
return; return;
} }
if (memcmp ((const uint8_t *)i2p::context.GetIdentHash (), clearText + SHORT_REQUEST_RECORD_NEXT_IDENT_OFFSET, 32)) // if next ident is now ours if (!memcmp ((const uint8_t *)i2p::context.GetIdentHash (), clearText + SHORT_REQUEST_RECORD_NEXT_IDENT_OFFSET, 32)) // if next ident is now ours
{ {
LogPrint (eLogWarning, "I2NP: Next ident is ours in short request record"); LogPrint (eLogWarning, "I2NP: Next ident is ours in short request record");
return; return;

Loading…
Cancel
Save