From: Peiwei Hu <58985155+PeiweiHu@users.noreply.github.com> Date: Sun, 26 Sep 2021 07:28:19 +0000 (+0800) Subject: Fix return value of BIO_free X-Git-Tag: openssl-3.2.0-alpha1~3510 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d8f6c533cfcbcad350c9cfb2c112eb9f938ba83c;p=thirdparty%2Fopenssl.git Fix return value of BIO_free CLA: trivial Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/16682) --- diff --git a/crypto/bio/bio_lib.c b/crypto/bio/bio_lib.c index a378f186d7b..25df70f7608 100644 --- a/crypto/bio/bio_lib.c +++ b/crypto/bio/bio_lib.c @@ -140,7 +140,7 @@ int BIO_free(BIO *a) if (HAS_CALLBACK(a)) { ret = (int)bio_call_callback(a, BIO_CB_FREE, NULL, 0, 0, 0L, 1L, NULL); if (ret <= 0) - return ret; + return 0; } if ((a->method != NULL) && (a->method->destroy != NULL))