summaryrefslogtreecommitdiff
path: root/nest/rt-table.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2015-11-09 01:01:12 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2015-11-09 01:01:12 +0100
commit86b4e17001fe4cca6dde7ff523346121c0ae68fe (patch)
treed49f1fc5ccdd5bb6629e1e668a79d37cbd658814 /nest/rt-table.c
parent9b9a7143c43d01f0459d40363d56e9c7690c596f (diff)
Nest: Fixes bug in missing cleanup during table removal
When a table is removed during reconfiguration, a reference was not cleared in the old configuration, which breaks undo.
Diffstat (limited to 'nest/rt-table.c')
-rw-r--r--nest/rt-table.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 2ddff12e..10ce400a 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -1868,6 +1868,7 @@ rt_unlock_table(rtable *r)
{
struct config *conf = r->deleted;
DBG("Deleting routing table %s\n", r->name);
+ r->config->table = NULL;
if (r->hostcache)
rt_free_hostcache(r);
rem_node(&r->n);