Checking the return of BIO_new_fp(). If it returns NULL, then it is unnecessary to...
authorxkernel <xkernel.wang@foxmail.com>
Wed, 19 Oct 2022 16:40:25 +0000 (00:40 +0800)
committerPauli <pauli@openssl.org>
Sun, 23 Oct 2022 23:00:27 +0000 (10:00 +1100)
commit3e9ce25c6a312300e446690e87b6231bedf727e0
tree68fc7c900c03ea310aec4d6a32564cef89a0dd00
parentf713ec7d9d146194ca572f7b7f8cc3434119f400
Checking the return of BIO_new_fp(). If it returns NULL, then it is unnecessary to build the BIO chain and better make the caller directly return NULL

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

(cherry picked from commit fb03e6145961005a6db011d2f36660d2eed734e2)
apps/lib/apps.c