From: Dr. Stephen Henson Date: Sat, 18 May 2002 23:42:20 +0000 (+0000) Subject: Add missing EVP_CIPHER_CTX_init call. X-Git-Tag: OpenSSL_0_9_7-beta1~43 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ace2ca484b5415837fc0501db8089d798921f6db;p=oweals%2Fopenssl.git Add missing EVP_CIPHER_CTX_init call. --- diff --git a/crypto/asn1/p5_pbev2.c b/crypto/asn1/p5_pbev2.c index 43dfe09479..91e1c8987d 100644 --- a/crypto/asn1/p5_pbev2.c +++ b/crypto/asn1/p5_pbev2.c @@ -116,6 +116,8 @@ X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter, if (RAND_pseudo_bytes(iv, EVP_CIPHER_iv_length(cipher)) < 0) goto err; + EVP_CIPHER_CTX_init(&ctx); + /* Dummy cipherinit to just setup the IV */ EVP_CipherInit_ex(&ctx, cipher, NULL, NULL, iv, 0); if(EVP_CIPHER_param_to_asn1(&ctx, scheme->parameter) < 0) {