mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
Fix for handling match on domain name that may have a null terminator inside. The check should match on len from ASN.1 reguardless of a null character.
This commit is contained in:
@@ -7525,9 +7525,6 @@ int MatchDomainName(const char* pattern, int len, const char* str)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*str != '\0')
|
|
||||||
str++;
|
|
||||||
|
|
||||||
if (len > 0)
|
if (len > 0)
|
||||||
len--;
|
len--;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user