summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
Diffstat (limited to 'nest')
-rw-r--r--nest/rt-table.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 88f60bdf..2c9c6e3a 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -1689,7 +1689,10 @@ again:
if (c->flush_active)
{
c->flush_active = 0;
- channel_set_state(c, CS_DOWN);
+ struct rtable_config *rtab_cf = c->table->config;
+ channel_set_state(c, CS_DOWN); /* Can free (struct rtable *) c->table */
+ if (rtab_cf->table == NULL)
+ break;
}
return;