summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cms/cms_asn1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/cms/cms_asn1.c')
-rw-r--r--src/lib/libcrypto/cms/cms_asn1.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/cms/cms_asn1.c b/src/lib/libcrypto/cms/cms_asn1.c
index e450259832..42e33d5b46 100644
--- a/src/lib/libcrypto/cms/cms_asn1.c
+++ b/src/lib/libcrypto/cms/cms_asn1.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: cms_asn1.c,v 1.7 2015/09/10 15:56:25 jsing Exp $ */ 1/* $OpenBSD: cms_asn1.c,v 1.8 2016/03/11 07:08:44 mmcc Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project. 3 * project.
4 */ 4 */
@@ -220,8 +220,7 @@ cms_si_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg)
220 if (operation == ASN1_OP_FREE_POST) { 220 if (operation == ASN1_OP_FREE_POST) {
221 CMS_SignerInfo *si = (CMS_SignerInfo *)*pval; 221 CMS_SignerInfo *si = (CMS_SignerInfo *)*pval;
222 EVP_PKEY_free(si->pkey); 222 EVP_PKEY_free(si->pkey);
223 if (si->signer) 223 X509_free(si->signer);
224 X509_free(si->signer);
225 } 224 }
226 return 1; 225 return 1;
227} 226}
@@ -883,8 +882,7 @@ cms_ri_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg)
883 if (ri->type == CMS_RECIPINFO_TRANS) { 882 if (ri->type == CMS_RECIPINFO_TRANS) {
884 CMS_KeyTransRecipientInfo *ktri = ri->d.ktri; 883 CMS_KeyTransRecipientInfo *ktri = ri->d.ktri;
885 EVP_PKEY_free(ktri->pkey); 884 EVP_PKEY_free(ktri->pkey);
886 if (ktri->recip) 885 X509_free(ktri->recip);
887 X509_free(ktri->recip);
888 } else if (ri->type == CMS_RECIPINFO_KEK) { 886 } else if (ri->type == CMS_RECIPINFO_KEK) {
889 CMS_KEKRecipientInfo *kekri = ri->d.kekri; 887 CMS_KEKRecipientInfo *kekri = ri->d.kekri;
890 if (kekri->key) { 888 if (kekri->key) {