Parse empty string as ID_ANY

This commit is contained in:
Tobias Brunner
2013-06-11 11:03:12 +02:00
parent af67613ed6
commit 456a31e895
+3 -2
View 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, "::")