mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41: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:
parent
1155c79209
commit
5e9bdac28e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user