From 5e9bdac28ec95172b0c31641507f6a2fcd2e95fb Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Sat, 21 May 2011 22:48:08 +0200 Subject: Fixes a bug with setting preference during show route cmd. If show route cmd was used with a filter that changed preference, BIRD crashed. --- nest/rt-table.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'nest') diff --git a/nest/rt-table.c b/nest/rt-table.c index b37efef..3ff53ff 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; -- cgit v1.2.3