提交 c1d1b011 编写于 作者: B Ben Laurie

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

上级 66816c53
...@@ -93,9 +93,10 @@ CMS_RecipientInfo *CMS_add0_recipient_password(CMS_ContentInfo *cms, ...@@ -93,9 +93,10 @@ CMS_RecipientInfo *CMS_add0_recipient_password(CMS_ContentInfo *cms,
X509_ALGOR *encalg = NULL; X509_ALGOR *encalg = NULL;
unsigned char iv[EVP_MAX_IV_LENGTH]; unsigned char iv[EVP_MAX_IV_LENGTH];
int ivlen; int ivlen;
env = cms_get0_enveloped(cms); env = cms_get0_enveloped(cms);
if (!env) if (!env)
goto err; return NULL;
if (wrap_nid <= 0) if (wrap_nid <= 0)
wrap_nid = NID_id_alg_PWRI_KEK; wrap_nid = NID_id_alg_PWRI_KEK;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册