BIO_ctrl: Avoid spurious error being raised on NULL bio parameter
authorTomas Mraz <tomas@openssl.org>
Mon, 27 Sep 2021 07:45:31 +0000 (09:45 +0200)
committerTomas Mraz <tomas@openssl.org>
Tue, 28 Sep 2021 10:12:32 +0000 (12:12 +0200)
commit398ae8231650c4bd8ddff0e5efd38233c23b1ca0
treed966b6dcaeaa9ee27847f012969719b9b873688a
parentc2ee608a234340aa735f894f8d84ead0ce58286e
BIO_ctrl: Avoid spurious error being raised on NULL bio parameter

Some of the functions are being called on NULL bio with the
expectation that such call will not raise an error.

Fixes #16681

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/16686)
crypto/bio/bio_lib.c