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 b37efef9..3ff53ff4 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -1721,7 +1721,10 @@ rt_show_net(struct cli *c, net *n, struct rt_show_data *d)
ia[0] = 0;
}
if (e != ee)
- rte_free(ee);
+ {
+ rte_free(e);
+ e = ee;
+ }
rte_update_unlock();
if (d->primary_only)
break;