Fix ret val for wolfSSL_BIO_set_ssl

pull/3785/head
Eric Blankenhorn 2021-02-19 16:35:01 -06:00
parent ad58478d29
commit ebb2c7ae71
1 changed files with 4 additions and 1 deletions

View File

@ -16015,15 +16015,18 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
long wolfSSL_BIO_set_ssl(WOLFSSL_BIO* b, WOLFSSL* ssl, int closeF)
{
long ret = WOLFSSL_FAILURE;
WOLFSSL_ENTER("wolfSSL_BIO_set_ssl");
if (b != NULL) {
b->ptr = ssl;
b->shutdown = (byte)closeF;
/* add to ssl for bio free if SSL_free called before/instead of free_all? */
ret = WOLFSSL_SUCCESS;
}
return 0;
return ret;
}
#ifndef NO_FILESYSTEM