aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pluto/connections.c5
-rw-r--r--src/pluto/whack_attribute.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/pluto/connections.c b/src/pluto/connections.c
index 38803ea65..b6ba57c4c 100644
--- a/src/pluto/connections.c
+++ b/src/pluto/connections.c
@@ -376,6 +376,11 @@ void delete_connection(connection_t *c, bool relations)
vip->destroy(vip);
}
+ if (c->kind != CK_GOING_AWAY)
+ {
+ whack_attr->del_pool(whack_attr, c->name);
+ }
+
/* free internal data */
#ifdef DEBUG
cur_debugging = old_cur_debugging;
diff --git a/src/pluto/whack_attribute.c b/src/pluto/whack_attribute.c
index 2ccfdb3e8..fcb5c13cb 100644
--- a/src/pluto/whack_attribute.c
+++ b/src/pluto/whack_attribute.c
@@ -160,6 +160,9 @@ METHOD(whack_attribute_t, del_pool, void,
{
if (streq(name, pool->get_name(pool)))
{
+ DBG(DBG_CONTROL,
+ DBG_log("deleting virtual IP address pool '%s'", name)
+ );
this->pools->remove_at(this->pools, enumerator);
pool->destroy(pool);
break;