]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes a bug with setting preference during show route cmd.
authorOndrej Zajicek <santiago@crfreenet.org>
Sat, 21 May 2011 20:48:08 +0000 (22:48 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Sat, 21 May 2011 20:48:08 +0000 (22:48 +0200)
If show route cmd was used with a filter that changed preference,
BIRD crashed.

nest/rt-table.c

index b37efef97a05e6be90f753b80633026facd5bd5a..3ff53ff4d411abafea67d01f47feeae17e1dfb1d 100644 (file)
@@ -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;