]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
stroke: Fix error message if parsing leftsourceip fails
authorTobias Brunner <tobias@strongswan.org>
Mon, 6 Jan 2014 11:55:10 +0000 (12:55 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 6 Jan 2014 11:55:45 +0000 (12:55 +0100)
src/libcharon/plugins/stroke/stroke_config.c

index 2e10f324b789f4d60096b5fa4910c92ed1fb5c41..e5e6d9246fa9fee76c8ec5212c8fd9d9139216df 100644 (file)
@@ -880,7 +880,7 @@ static peer_cfg_t *build_peer_cfg(private_stroke_config_t *this,
                        else
                        {
                                vip = host_create_from_string(token, 0);
-                               if (vip)
+                               if (!vip)
                                {
                                        DBG1(DBG_CFG, "ignored invalid subnet token: %s", token);
                                }