summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-05-21 22:48:08 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2011-05-21 22:48:08 +0200
commit5e9bdac28ec95172b0c31641507f6a2fcd2e95fb (patch)
tree9b763bab7574b1ea8f0109b93c4d1113e4ac05e6 /nest
parent1155c79209b6a670d0e1f85b2603363ba1132ae0 (diff)
downloadbird-5e9bdac28ec95172b0c31641507f6a2fcd2e95fb.tar
bird-5e9bdac28ec95172b0c31641507f6a2fcd2e95fb.zip
Fixes a bug with setting preference during show route cmd.
If show route cmd was used with a filter that changed preference, BIRD crashed.
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 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;