Skip to content
Snippets Groups Projects
Commit c1d1b011 authored by Ben Laurie's avatar Ben Laurie
Browse files

Don't clean up uninitialised EVP_CIPHER_CTX on error (CID 483259).

parent 66816c53
No related branches found
No related tags found
No related merge requests found
......@@ -93,9 +93,10 @@ CMS_RecipientInfo *CMS_add0_recipient_password(CMS_ContentInfo *cms,
X509_ALGOR *encalg = NULL;
unsigned char iv[EVP_MAX_IV_LENGTH];
int ivlen;
env = cms_get0_enveloped(cms);
if (!env)
goto err;
return NULL;
if (wrap_nid <= 0)
wrap_nid = NID_id_alg_PWRI_KEK;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment