From: Ondrej Zajicek Date: Sat, 21 May 2011 20:48:08 +0000 (+0200) Subject: Fixes a bug with setting preference during show route cmd. X-Git-Tag: v1.3.2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e9bdac28ec95172b0c31641507f6a2fcd2e95fb;p=thirdparty%2Fbird.git Fixes a bug with setting preference during show route cmd. If show route cmd was used with a filter that changed preference, BIRD crashed. --- diff --git a/nest/rt-table.c b/nest/rt-table.c index b37efef97..3ff53ff4d 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;