diff options
| author | George Hazan <ghazan@miranda.im> | 2022-11-15 12:49:25 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2022-11-15 12:49:25 +0300 |
| commit | f708f2a55a467092b70a537c2b97c9210440a420 (patch) | |
| tree | bec7d1200a546bfdac30ec64278673217d6e6365 /protocols/WhatsApp/src/iq.cpp | |
| parent | 85bcf4d780a31fd88508ae42ba825394a0911a5d (diff) | |
fixes #3245 (WhatsApp: crash on login) + code cleaning
Diffstat (limited to 'protocols/WhatsApp/src/iq.cpp')
| -rw-r--r-- | protocols/WhatsApp/src/iq.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/iq.cpp b/protocols/WhatsApp/src/iq.cpp index 7dede1f437..c86e1e23a1 100644 --- a/protocols/WhatsApp/src/iq.cpp +++ b/protocols/WhatsApp/src/iq.cpp @@ -178,7 +178,7 @@ void WhatsAppProto::OnIqPairSuccess(const WANode &node) signal_buffer *result; ec_private_key key = {}; memcpy(key.data, m_signalStore.signedIdentity.priv.data(), m_signalStore.signedIdentity.priv.length()); - if (curve_calculate_signature(m_signalStore.CTX(), &result, &key, (BYTE *)buf.data(), buf.length()) != 0) + if (curve_calculate_signature(m_signalStore.CTX(), &result, &key, buf.data(), buf.length()) != 0) throw "OnIqPairSuccess: cannot calculate account signature, exiting"; account->devicesignature = proto::SetBinary(result->data, result->len); |
