Skip to content

Commit

Permalink
TODO REMOVE: experiment for narrowing down the source of reported mem…
Browse files Browse the repository at this point in the history
…ory leak
  • Loading branch information
DDvO committed Oct 6, 2023
1 parent 62d873d commit 0bc599f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto/cms/cms_smime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion crypto/pkcs7/pk7_smime.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 0bc599f

Please sign in to comment.