From 38740a1caa2983fa42357bdbdb49bad2fc7a94b2 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Thu, 5 Nov 2020 10:36:05 +1000 Subject: [PATCH] Fix dynamic type name --- src/internal.c | 4 ++-- src/ssl.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal.c b/src/internal.c index 46ff3fdbf..6fbcfec7e 100644 --- a/src/internal.c +++ b/src/internal.c @@ -20090,7 +20090,7 @@ int CreateDevPrivateKey(void** pkey, byte* data, word32 length, int hsType, *pkey = (void*)rsaKey; } else { - XFREE(rsaKey, heap, DYNAMIC_TYPE_EC); + XFREE(rsaKey, heap, DYNAMIC_TYPE_RSA); } #endif } @@ -20113,7 +20113,7 @@ int CreateDevPrivateKey(void** pkey, byte* data, word32 length, int hsType, *pkey = (void*)ecKey; } else { - XFREE(ecKey, heap, DYNAMIC_TYPE_EC); + XFREE(ecKey, heap, DYNAMIC_TYPE_ECC); } #endif } diff --git a/src/ssl.c b/src/ssl.c index 8a929ab26..bd240e476 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -7984,7 +7984,7 @@ int wolfSSL_check_private_key(const WOLFSSL* ssl) wc_ecc_free(pkey); } if (pkey != NULL) { - XFREE(pkey, ctx->heap, type); + XFREE(pkey, ssl->heap, type); } } else