fixed matches() check for RFC822/FQDN without wildcards
authorMartin Willi <martin@strongswan.org>
Fri, 13 Jun 2008 15:10:01 +0000 (15:10 -0000)
committerMartin Willi <martin@strongswan.org>
Fri, 13 Jun 2008 15:10:01 +0000 (15:10 -0000)
src/libstrongswan/utils/identification.c

index cf64f04..e1fb540 100644 (file)
@@ -814,8 +814,8 @@ static id_match_t matches_string(private_identification_t *this,
        {
                return ID_MATCH_NONE;
        }
-       /* try a binary comparison first */
-       if (equals_binary(this, other))
+       /* try a equals check first */
+       if (equals_strcasecmp(this, other))
        {
                return ID_MATCH_PERFECT;
        }