diff options
author | Richard Levitte <levitte@openssl.org> | 2000-03-23 18:14:21 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-03-23 18:14:21 +0000 |
commit | 0fa197d8bce3a410e9cb7c54a731d32ffed384ab (patch) | |
tree | 630091ece113e9d7b65c37ef8f82d46ab2985c04 /crypto/pkcs7 | |
parent | fd72d831b798eda88a74b5ca78d4c74a366ee6df (diff) | |
download | openssl-0fa197d8bce3a410e9cb7c54a731d32ffed384ab.tar.gz |
Clean up context, even if an error occured.
Diffstat (limited to 'crypto/pkcs7')
-rw-r--r-- | crypto/pkcs7/pk7_doit.c | 1 |
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); |