From f23915baa15bdf155762d2ca869ad0b4df1aaf32 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 14 Aug 2018 12:44:31 -0600 Subject: [PATCH] Fix for BIO ssl case, which is not supported (for the Boost.Asio project this isn't required either). --- src/bio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bio.c b/src/bio.c index 514fd2bf4..a28fafd02 100644 --- a/src/bio.c +++ b/src/bio.c @@ -696,7 +696,8 @@ size_t wolfSSL_BIO_wpending(const WOLFSSL_BIO *bio) return 0; if (bio->ssl != NULL) { - return (long)wolfSSL_pending(bio->ssl); + /* not supported case */ + return 0; } if (bio->type == WOLFSSL_BIO_MEMORY) { @@ -710,7 +711,6 @@ size_t wolfSSL_BIO_wpending(const WOLFSSL_BIO *bio) } return 0; - } /* Return the number of pending bytes in read and write buffers */