mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
dtls: fix heap hint in XFREE
This commit is contained in:
@@ -12379,7 +12379,7 @@ int wolfSSL_DTLS_SetCookieSecret(WOLFSSL* ssl,
|
|||||||
ForceZero(ssl->buffers.dtlsCookieSecret.buffer,
|
ForceZero(ssl->buffers.dtlsCookieSecret.buffer,
|
||||||
ssl->buffers.dtlsCookieSecret.length);
|
ssl->buffers.dtlsCookieSecret.length);
|
||||||
XFREE(ssl->buffers.dtlsCookieSecret.buffer,
|
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);
|
newSecret = (byte*)XMALLOC(secretSz, ssl->heap,DYNAMIC_TYPE_COOKIE_PWD);
|
||||||
|
Reference in New Issue
Block a user