summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r--protocols/JabberG/src/jabber_secur.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_secur.cpp b/protocols/JabberG/src/jabber_secur.cpp
index fa55ce43a5..fc397cdbc7 100644
--- a/protocols/JabberG/src/jabber_secur.cpp
+++ b/protocols/JabberG/src/jabber_secur.cpp
@@ -297,11 +297,11 @@ char* TScramAuth::getChallenge(const char *challenge)
unsigned int len;
HMAC(hashMethod, saltedPassw, hashMethod->md_size, (BYTE*)"Client Key", 10, clientKey, &len);
- BYTE storedKey[EVP_MAX_MD_SIZE], md[EVP_MAX_MD_SIZE];
+ BYTE storedKey[EVP_MAX_MD_SIZE];
EVP_MD_CTX pctx = {};
pctx.digest = hashMethod;
- pctx.md_data = md;
+ pctx.md_data = _alloca(hashMethod->ctx_size);
hashMethod->init(&pctx);
hashMethod->update(&pctx, clientKey, hashMethod->md_size);
hashMethod->final(&pctx, storedKey);