mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 16:20:53 +02:00
Merge pull request #10119 from kareem-wolfssl/zd21512
Exit MatchDomainName if pattern or string length reach 0.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user