diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-03-28 16:30:29 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-06-11 11:03:12 +0200 |
commit | 456a31e8957e5928c62a8e83460b10602335e99d (patch) | |
tree | 6882b0bd7b994024f45a4d89d578cd8c3bd38a8a /src | |
parent | af67613ed6b67788db6ba15e0fb1975a5d394d7b (diff) | |
download | strongswan-456a31e8957e5928c62a8e83460b10602335e99d.tar.bz2 strongswan-456a31e8957e5928c62a8e83460b10602335e99d.tar.xz |
Parse empty string as ID_ANY
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/utils/identification.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstrongswan/utils/identification.c b/src/libstrongswan/utils/identification.c index 4176320dc..348da627c 100644 --- a/src/libstrongswan/utils/identification.c +++ b/src/libstrongswan/utils/identification.c @@ -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, "::") |