From ec8ec893c614257d45dd2beb8e7bbac8c24e9117 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 14 May 2021 11:07:47 +0200 Subject: [PATCH] mbedtls: memset, cf 996ed197fbfb9af8af6b8437adbe177e8d5a14db --- common/mbedtls/platform_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/mbedtls/platform_util.c b/common/mbedtls/platform_util.c index ed9c75734..0f5623eba 100644 --- a/common/mbedtls/platform_util.c +++ b/common/mbedtls/platform_util.c @@ -62,13 +62,13 @@ * mbedtls_platform_zeroize() to use a suitable implementation for their * platform and needs. */ -static void *(* const volatile memset_func)(void *, int, size_t) = memset; +//static void *(* const volatile memset_func)(void *, int, size_t) = memset; void mbedtls_platform_zeroize(void *buf, size_t len) { MBEDTLS_INTERNAL_VALIDATE(len == 0 || buf != NULL); if (len > 0) - memset_func(buf, 0, len); + memset(buf, 0, len); } #endif /* MBEDTLS_PLATFORM_ZEROIZE_ALT */