Parse empty string as ID_ANY
authorTobias Brunner <tobias@strongswan.org>
Thu, 28 Mar 2013 15:30:29 +0000 (16:30 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 11 Jun 2013 09:03:12 +0000 (11:03 +0200)
src/libstrongswan/utils/identification.c

index 4176320..348da62 100644 (file)
@@ -921,8 +921,9 @@ identification_t *identification_create_from_string(char *string)
        }
        else if (strchr(string, '@') == NULL)
        {
-               if (streq(string, "%any")
-               ||  streq(string, "%any6")
+               if (streq(string, "")
+               ||      streq(string, "%any")
+               ||      streq(string, "%any6")
                ||      streq(string, "0.0.0.0")
                ||      streq(string, "*")
                ||      streq(string, "::")