aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/pkcs7
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-03-23 18:14:21 +0000
committerRichard Levitte <levitte@openssl.org>2000-03-23 18:14:21 +0000
commit0fa197d8bce3a410e9cb7c54a731d32ffed384ab (patch)
tree630091ece113e9d7b65c37ef8f82d46ab2985c04 /crypto/pkcs7
parentfd72d831b798eda88a74b5ca78d4c74a366ee6df (diff)
downloadopenssl-0fa197d8bce3a410e9cb7c54a731d32ffed384ab.tar.gz
Clean up context, even if an error occured.
Diffstat (limited to 'crypto/pkcs7')
-rw-r--r--crypto/pkcs7/pk7_doit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/pkcs7/pk7_doit.c b/crypto/pkcs7/pk7_doit.c
index 80ac5e34b4..4ab24a86f5 100644
--- a/crypto/pkcs7/pk7_doit.c
+++ b/crypto/pkcs7/pk7_doit.c
@@ -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);