]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Fixes bug in missing cleanup during table removal
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 9 Nov 2015 00:01:12 +0000 (01:01 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Mon, 9 Nov 2015 00:01:12 +0000 (01:01 +0100)
When a table is removed during reconfiguration, a reference was not
cleared in the old configuration, which breaks undo.

nest/rt-table.c

index 2ddff12eae465f01fe1b38b25cf22b20ee9a20e6..10ce400ae9fbf3550b94bed2ee3de961b0392086 100644 (file)
@@ -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);