Initialise context before using it.

(cherry picked from commit a4947e4e064d2d5bb622ac64cf13edc4a46ed196)
This commit is contained in:
Dr. Stephen Henson 2013-11-06 13:16:50 +00:00
parent 68b6a94379
commit 0c0a51d34b

View File

@ -90,7 +90,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)