Fix for BIO ssl case, which is not supported (for the Boost.Asio project this isn't required either).

This commit is contained in:
David Garske
2018-08-14 12:44:31 -06:00
parent 6ca56ee98c
commit f23915baa1

View File

@ -696,7 +696,8 @@ size_t wolfSSL_BIO_wpending(const WOLFSSL_BIO *bio)
return 0; return 0;
if (bio->ssl != NULL) { if (bio->ssl != NULL) {
return (long)wolfSSL_pending(bio->ssl); /* not supported case */
return 0;
} }
if (bio->type == WOLFSSL_BIO_MEMORY) { if (bio->type == WOLFSSL_BIO_MEMORY) {
@ -710,7 +711,6 @@ size_t wolfSSL_BIO_wpending(const WOLFSSL_BIO *bio)
} }
return 0; return 0;
} }
/* Return the number of pending bytes in read and write buffers */ /* Return the number of pending bytes in read and write buffers */