BIO_eof returns 1 when no more data remains in the BIO

This commit is contained in:
Juliusz Sosinowicz 2022-07-21 15:35:40 +02:00
parent a4e3dc9638
commit 6f2889c07d

View File

@ -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;
}