Initialise context before using it.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 6 Nov 2013 13:16:50 +0000 (13:16 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 6 Nov 2013 13:19:37 +0000 (13:19 +0000)
(cherry picked from commit a4947e4e064d2d5bb622ac64cf13edc4a46ed196)

crypto/evp/p5_crpt2.c

index 618bbba68f3cb2f63f5603e2a067e04e48a69103..2edb6579008829aadf6616b3670695808d39df15 100644 (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)