From 0bc599fec71d3d77f9208fc5162ab644af5a77a8 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Fri, 6 Oct 2023 22:39:42 +0200 Subject: [PATCH] TODO REMOVE: experiment for narrowing down the source of reported memory leak --- crypto/cms/cms_smime.c | 2 +- crypto/pkcs7/pk7_smime.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/cms/cms_smime.c b/crypto/cms/cms_smime.c index 43741b56fd1b0e..7375ae21c25045 100644 --- a/crypto/cms/cms_smime.c +++ b/crypto/cms/cms_smime.c @@ -362,7 +362,7 @@ int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs, } if ((untrusted = CMS_get1_certs(cms)) == NULL) goto err; - if (sk_X509_num(certs) > 0 + if (sk_X509_num(certs) > 0 /* TODO remove: */ && 0 && !ossl_x509_add_certs_new(&untrusted, certs, X509_ADD_FLAG_UP_REF | X509_ADD_FLAG_NO_DUP)) diff --git a/crypto/pkcs7/pk7_smime.c b/crypto/pkcs7/pk7_smime.c index a9b817d49242ea..59708e7ec60431 100644 --- a/crypto/pkcs7/pk7_smime.c +++ b/crypto/pkcs7/pk7_smime.c @@ -279,7 +279,7 @@ int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store, if (certs != NULL && (untrusted = X509_chain_up_ref(certs)) == NULL) goto err; included_certs = pkcs7_get0_certificates(p7); - if ((flags & PKCS7_NOCHAIN) == 0 && sk_X509_num(included_certs) > 0 + if ((flags & PKCS7_NOCHAIN) == 0 && sk_X509_num(included_certs) > 0 /* TODO remove: */ && 0 && !ossl_x509_add_certs_new(&untrusted, included_certs, X509_ADD_FLAG_UP_REF | X509_ADD_FLAG_NO_DUP))