set return bio to null after free on error

This commit is contained in:
JacobBarthelmeh
2023-06-07 15:05:52 -06:00
parent fb5413cea0
commit 14990ad92d

View File

@@ -2375,6 +2375,7 @@ int wolfSSL_BIO_flush(WOLFSSL_BIO* bio)
if (err == 1) {
wolfSSL_free(ssl);
wolfSSL_BIO_free(sslBio);
sslBio = NULL;
wolfSSL_BIO_free(connBio);
}