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