]> granicus.if.org Git - openssl/commitdiff
fix memory leak (BIO_free_all needs pointer to first BIO)
authorBodo Möller <bodo@openssl.org>
Tue, 17 May 2005 05:52:18 +0000 (05:52 +0000)
committerBodo Möller <bodo@openssl.org>
Tue, 17 May 2005 05:52:18 +0000 (05:52 +0000)
PR: 1070

crypto/pkcs7/pk7_smime.c

index a852b4923586d2593a6fa90efe6947d66b39b249..99a0d63f38f54b154c25d49be28bab1d7abf8d32 100644 (file)
@@ -296,11 +296,9 @@ int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store,
        
        if (tmpin == indata)
                {
-               if(indata) BIO_pop(p7bio);
-               BIO_free_all(p7bio);
+               if (indata) BIO_pop(p7bio);
                }
-       else
-               BIO_free_all(tmpin);
+       BIO_free_all(p7bio);
 
        sk_X509_free(signers);