Clean up context, even if an error occured.

This commit is contained in:
Richard Levitte 2000-03-23 18:14:21 +00:00
parent fd72d831b7
commit 0fa197d8bc

View File

@ -699,6 +699,7 @@ int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio,
if (i <= 0)
{
PKCS7err(PKCS7_F_PKCS7_DATAVERIFY,ERR_R_X509_LIB);
X509_STORE_CTX_cleanup(ctx);
goto err;
}
X509_STORE_CTX_cleanup(ctx);