From fc4b00891235abfd4f87f53de2dbdb3719d64ad2 Mon Sep 17 00:00:00 2001 From: Marco Oliverio Date: Mon, 28 Nov 2022 16:45:00 +0000 Subject: [PATCH] dtls: fix heap hint in XFREE --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 4686758b4..220046ef8 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -12379,7 +12379,7 @@ int wolfSSL_DTLS_SetCookieSecret(WOLFSSL* ssl, ForceZero(ssl->buffers.dtlsCookieSecret.buffer, ssl->buffers.dtlsCookieSecret.length); XFREE(ssl->buffers.dtlsCookieSecret.buffer, - ssl->heap, DYNAMIC_TYPE_NONE); + ssl->heap, DYNAMIC_TYPE_COOKIE_PWD); } newSecret = (byte*)XMALLOC(secretSz, ssl->heap,DYNAMIC_TYPE_COOKIE_PWD);