Parse empty string as ID_ANY

This commit is contained in:
Tobias Brunner 2013-03-28 16:30:29 +01:00
parent af67613ed6
commit 456a31e895
1 changed files with 3 additions and 2 deletions

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, "::")