From d8f6c533cfcbcad350c9cfb2c112eb9f938ba83c Mon Sep 17 00:00:00 2001 From: Peiwei Hu <58985155+PeiweiHu@users.noreply.github.com> Date: Sun, 26 Sep 2021 15:28:19 +0800 Subject: [PATCH] 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) --- crypto/bio/bio_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.47.2