forked from wolfSSL/wolfssl
reset pointer on SMIME fail case
This commit is contained in:
@ -54735,6 +54735,7 @@ error:
|
|||||||
if (canonSection != NULL)
|
if (canonSection != NULL)
|
||||||
XFREE(canonSection, NULL, DYNAMIC_TYPE_PKCS7);
|
XFREE(canonSection, NULL, DYNAMIC_TYPE_PKCS7);
|
||||||
wolfSSL_BIO_free(*bcont);
|
wolfSSL_BIO_free(*bcont);
|
||||||
|
*bcont = NULL; /* reset 'bcount' pointer to NULL on failure */
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user