From 6f2889c07d289d1355c99d3a65a71967f77af11a Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Thu, 21 Jul 2022 15:35:40 +0200 Subject: [PATCH] BIO_eof returns 1 when no more data remains in the BIO --- src/bio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bio.c b/src/bio.c index fa27b4845..78ebbc425 100644 --- a/src/bio.c +++ b/src/bio.c @@ -2231,7 +2231,7 @@ int wolfSSL_BIO_flush(WOLFSSL_BIO* bio) ret = b->eof; break; default: - ret = wolfSSL_BIO_get_len(b) != 0; + ret = wolfSSL_BIO_get_len(b) == 0; break; }