diff options
-rw-r--r-- | crypto/pkcs7/pk7_smime.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/crypto/pkcs7/pk7_smime.c b/crypto/pkcs7/pk7_smime.c index 5c2e3b6f92..64a3cc4763 100644 --- a/crypto/pkcs7/pk7_smime.c +++ b/crypto/pkcs7/pk7_smime.c @@ -163,7 +163,6 @@ PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert, int flags) { PKCS7_SIGNER_INFO *si = NULL; - int si_free = 1; STACK_OF(X509_ALGOR) *smcap = NULL; if(!X509_check_private_key(signcert, pkey)) { @@ -179,10 +178,6 @@ PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert, return NULL; } - /* si is now part of p7 so don't free it on error */ - - si_free = 0; - if(!(flags & PKCS7_NOCERTS)) { if (!PKCS7_add_certificate(p7, signcert)) @@ -229,8 +224,6 @@ PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert, err: if (smcap) sk_X509_ALGOR_pop_free(smcap, X509_ALGOR_free); - if (si && si_free) - PKCS7_SIGNER_INFO_free(si); return NULL; } |