From e185a9b7ca0939f469ce74822b0ff4315f60857f Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Thu, 6 May 2021 11:44:46 +0700 Subject: [PATCH] reset pointer on SMIME fail case --- src/ssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ssl.c b/src/ssl.c index 662bc962d..8cc83d6ca 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -54735,6 +54735,7 @@ error: if (canonSection != NULL) XFREE(canonSection, NULL, DYNAMIC_TYPE_PKCS7); wolfSSL_BIO_free(*bcont); + *bcont = NULL; /* reset 'bcount' pointer to NULL on failure */ return NULL; }