mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Fixes a bug with setting preference during show route cmd.
If show route cmd was used with a filter that changed preference, BIRD crashed.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user