From: Nils Larsch Date: Mon, 26 Feb 2007 18:21:19 +0000 (+0000) Subject: remove dead code X-Git-Tag: OpenSSL_0_9_8k^2~951 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c209a358204568b9d0f66f1ceaa6673565b92fad;p=oweals%2Fopenssl.git remove dead code --- 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; }