implemented identification_t.match() case insensitive for RFC822/FQDN

This commit is contained in:
Martin Willi 2008-06-12 14:17:37 +00:00
parent 035930fc4a
commit 1726ca1027
1 changed files with 2 additions and 2 deletions

View File

@ -832,8 +832,8 @@ static id_match_t matches_string(private_identification_t *this,
{ /* not better than ID_ANY */
return ID_MATCH_ANY;
}
if (memeq(this->encoded.ptr + this->encoded.len - len,
other->encoded.ptr + 1, len))
if (strncasecmp(this->encoded.ptr + this->encoded.len - len,
other->encoded.ptr + 1, len) == 0)
{
return ID_MATCH_ONE_WILDCARD;
}