remove subnet from sourceip
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 2 May 2010 15:58:36 +0000 (17:58 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 2 May 2010 15:58:36 +0000 (17:58 +0200)
src/starter/confread.c

index 759aa05..e9b9028 100644 (file)
@@ -224,6 +224,8 @@ static void kw_end(starter_conn_t *conn, starter_end_t *end, kw_token_t token,
                                        goto err;
                                 }
                                *pos = '\0';
+                               free(end->sourceip);
+                               end->sourceip = clone_str(value);
                                end->sourceip_mask = atoi(pos + 1);
                        }
                        else