Merge pull request #10119 from kareem-wolfssl/zd21512

Exit MatchDomainName if pattern or string length reach 0.
This commit is contained in:
Daniel Pouzzner
2026-04-02 22:54:53 -05:00
committed by GitHub
+3
View File
@@ -13360,6 +13360,9 @@ int MatchDomainName(const char* pattern, int patternLen, const char* str,
wildcardEligible = 0;
}
if (strLen == 0)
return 0;
/* Simple case, pattern match exactly */
if (p != (char)XTOLOWER((unsigned char) *str))
return 0;