Initialise context before using it.

This commit is contained in:
Dr. Stephen Henson 2013-11-06 13:16:50 +00:00
parent 262f1c524e
commit a4947e4e06

View File

@ -91,7 +91,7 @@ int PKCS5_PBKDF2_HMAC(const char *pass, int passlen,
if (mdlen < 0)
return 0;
HMAC_CTX_init(&hctx);
HMAC_CTX_init(&hctx_tpl);
p = out;
tkeylen = keylen;
if(!pass)