Remove unnecessary memset

This commit is contained in:
Lealem Amedie
2025-07-22 10:05:36 -06:00
parent b306e88d1a
commit 22b01bcda9

View File

@@ -12958,9 +12958,6 @@ static int MatchIPv6(const char* pattern, int patternLen,
if ((word32)patternLen >= sizeof(patBuf) || strLen >= sizeof(strBuf)) if ((word32)patternLen >= sizeof(patBuf) || strLen >= sizeof(strBuf))
return 0; return 0;
XMEMSET(patBuf, 0, WOLFSSL_MAX_IPSTR);
XMEMSET(strBuf, 0, WOLFSSL_MAX_IPSTR);
/* Make sure strings are null-terminated and safely copied */ /* Make sure strings are null-terminated and safely copied */
XMEMCPY(patBuf, pattern, patternLen); XMEMCPY(patBuf, pattern, patternLen);
patBuf[patternLen] = '\0'; patBuf[patternLen] = '\0';