From 14990ad92dc4669dd59d5c345feb7d6ed7b95afa Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Wed, 7 Jun 2023 15:05:52 -0600 Subject: [PATCH] set return bio to null after free on error --- src/bio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bio.c b/src/bio.c index 595343488..5f845cf0b 100644 --- a/src/bio.c +++ b/src/bio.c @@ -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); }