mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Sanity check before free
This commit is contained in:
@@ -308,8 +308,10 @@ int tsip_TlsCleanup(struct WOLFSSL* ssl)
|
||||
/* free stored messages */
|
||||
tsipFlushMessages(ssl);
|
||||
/* free internal structure */
|
||||
if (tuc->internal) {
|
||||
XFREE(tuc->internal, ssl->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
tuc->internal = NULL;
|
||||
}
|
||||
|
||||
/* zero clear */
|
||||
ForceZero(tuc, sizeof(TsipUserCtx));
|
||||
|
Reference in New Issue
Block a user