0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Nest: Fix crash in rta_show() for Babel routes

Some new route source values did not have associated string
in rta_show(), which might caused crash in some cases.
This commit is contained in:
Ondrej Zajicek (work) 2018-12-20 13:06:18 +01:00
parent 4df42f1a55
commit e7e3b335bf

View File

@ -1251,7 +1251,7 @@ void
rta_show(struct cli *c, rta *a, ea_list *eal)
{
static char *src_names[] = { "dummy", "static", "inherit", "device", "static-device", "redirect",
"RIP", "OSPF", "OSPF-IA", "OSPF-E1", "OSPF-E2", "BGP", "pipe" };
"RIP", "OSPF", "OSPF-IA", "OSPF-E1", "OSPF-E2", "BGP", "pipe", "babel" };
static char *cast_names[] = { "unicast", "broadcast", "multicast", "anycast" };
int i;