]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Fix crash in rta_show() for Babel routes
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 20 Dec 2018 12:06:18 +0000 (13:06 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 20 Dec 2018 12:06:18 +0000 (13:06 +0100)
Some new route source values did not have associated string
in rta_show(), which might caused crash in some cases.

nest/rt-attr.c

index edf27d4457e30d4d1efd9da02d1f9feee12f74bb..3db552021aae502d7069bbb9d5e40ff006abeac1 100644 (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;