projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66816c5
)
Don't clean up uninitialised EVP_CIPHER_CTX on error (CID 483259).
author
Ben Laurie
<ben@links.org>
Thu, 10 Jul 2014 16:47:48 +0000
(17:47 +0100)
committer
Ben Laurie
<ben@links.org>
Thu, 10 Jul 2014 16:49:02 +0000
(17:49 +0100)
crypto/cms/cms_pwri.c
patch
|
blob
|
history
diff --git
a/crypto/cms/cms_pwri.c
b/crypto/cms/cms_pwri.c
index 8a574616d22b36ea27698425aee80488434a9e26..28f8f261a6940b08e115a9b4a4bf53c0872bf8ea 100644
(file)
--- a/
crypto/cms/cms_pwri.c
+++ b/
crypto/cms/cms_pwri.c
@@
-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;