Clean up context, even if an error occured.
authorRichard Levitte <levitte@openssl.org>
Thu, 23 Mar 2000 18:14:21 +0000 (18:14 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 23 Mar 2000 18:14:21 +0000 (18:14 +0000)
crypto/pkcs7/pk7_doit.c

index 80ac5e3..4ab24a8 100644 (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);