]> granicus.if.org Git - openssl/commitdiff
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:23 +0000 (13:19 +0000)
(cherry picked from commit a4947e4e064d2d5bb622ac64cf13edc4a46ed196)

crypto/evp/p5_crpt2.c

index 9409a82327db3c5e7008708da7e50b826966547e..cf26085c1a20d6a3c404a3e6db92357547b22053 100644 (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)