reset pointer on SMIME fail case

This commit is contained in:
Jacob Barthelmeh
2021-05-06 11:44:46 +07:00
parent 4cfa6c43a5
commit e185a9b7ca

View File

@ -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;
}