fix to free x509 struct in error case with wolfSSL_PKCS7_get0_signers

This commit is contained in:
JacobBarthelmeh
2026-03-04 15:59:56 -07:00
parent 350706d2c8
commit 13ebc5b9bf
+1
View File
@@ -292,6 +292,7 @@ WOLFSSL_STACK* wolfSSL_PKCS7_get0_signers(PKCS7* pkcs7, WOLFSSL_STACK* certs,
}
if (wolfSSL_sk_X509_push(signers, x509) <= 0) {
wolfSSL_X509_free(x509);
wolfSSL_sk_X509_pop_free(signers, NULL);
return NULL;
}