mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix memcmp.
This commit is contained in:
@@ -727,7 +727,7 @@ void Peer::getSessionCookie(std::string& strDst)
|
||||
|
||||
SHA512(s1, l1, sha1);
|
||||
SHA512(s2, l2, sha2);
|
||||
if (memcmp(s1, s2, sizeof(sha1))
|
||||
if (memcmp(s1, s2, sizeof(sha1)) == 0)
|
||||
throw std::runtime_errror("Identical finished messages");
|
||||
|
||||
for (int i = 0; i < sizeof(sha1); ++i)
|
||||
|
||||
Reference in New Issue
Block a user