mirror of https://github.com/wolfSSL/wolfssl
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:
parent
65eb79e5cd
commit
d43aa37041
|
@ -7525,9 +7525,6 @@ int MatchDomainName(const char* pattern, int len, const char* str)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (*str != '\0')
|
||||
str++;
|
||||
|
||||
if (len > 0)
|
||||
len--;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue