Replace BIO_free(bio_err) with BIO_free_all(bio_err)
authorxkernel <xkernel.wang@foxmail.com>
Wed, 19 Oct 2022 17:11:16 +0000 (01:11 +0800)
committerTomas Mraz <tomas@openssl.org>
Fri, 21 Oct 2022 14:13:00 +0000 (16:13 +0200)
dup_bio_err() can return a BIO chain when 'OPENSSL_SYS_VMS' is defined.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19446)

(cherry picked from commit a73bdc24e14760413a65d478d7c88356b4b95bb5)

apps/openssl.c

index e20661277e19854895634ef5cc4565ef6caf467d..c768bb4cbaf9f8eb7d7400241f1214352178ac42 100644 (file)
@@ -307,7 +307,7 @@ int main(int argc, char *argv[])
     BIO_free(bio_in);
     BIO_free_all(bio_out);
     apps_shutdown();
-    BIO_free(bio_err);
+    BIO_free_all(bio_err);
     EXIT(ret);
 }