summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/Protocol132.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Protocol132.cpp b/source/Protocol132.cpp
index 2a0b7a605..2765b66b2 100644
--- a/source/Protocol132.cpp
+++ b/source/Protocol132.cpp
@@ -591,7 +591,7 @@ void cProtocol132::HandleEncryptionKeyResponse(const AString & a_EncKey, const A
m_Client->Kick("Hacked client");
return;
}
- if (ntohl(*((int *)DecryptedNonce)) != (unsigned)this)
+ if (ntohl(*((int *)DecryptedNonce)) != (unsigned)(uintptr_t)this)
{
LOGD("Bad nonce value");
m_Client->Kick("Hacked client");