From 22b01bcda96b367512a31b08254e0908bc2dd962 Mon Sep 17 00:00:00 2001 From: Lealem Amedie Date: Tue, 22 Jul 2025 10:05:36 -0600 Subject: [PATCH] Remove unnecessary memset --- src/internal.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/internal.c b/src/internal.c index e9ea3f3cf..e5d0071b8 100644 --- a/src/internal.c +++ b/src/internal.c @@ -12958,9 +12958,6 @@ static int MatchIPv6(const char* pattern, int patternLen, if ((word32)patternLen >= sizeof(patBuf) || strLen >= sizeof(strBuf)) return 0; - XMEMSET(patBuf, 0, WOLFSSL_MAX_IPSTR); - XMEMSET(strBuf, 0, WOLFSSL_MAX_IPSTR); - /* Make sure strings are null-terminated and safely copied */ XMEMCPY(patBuf, pattern, patternLen); patBuf[patternLen] = '\0';