end->srcip string must be removed if it contains %config
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 27 Apr 2008 11:28:58 +0000 (11:28 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 27 Apr 2008 11:28:58 +0000 (11:28 -0000)
src/starter/confread.c

index 4bc36bb..d1777cd 100644 (file)
@@ -187,6 +187,8 @@ kw_end(starter_conn_t *conn, starter_end_t *end, kw_token_t token
                if (streq(value, "%modeconfig") || streq(value, "%modecfg") ||
                        streq(value, "%config") || streq(value, "%cfg"))
                {
+                       pfree(end->srcip);
+                       end->srcip = NULL;
                        end->modecfg = TRUE;
                }
                else