summaryrefslogtreecommitdiff
path: root/lib/lib_errors.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-06-05 20:59:02 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-06-18 09:11:15 -0400
commit76c1403df2216485829a3a86dacfb0efd797625a (patch)
tree0fc29f88eb26f66c1df29245cfa4faf93e8c60b4 /lib/lib_errors.h
parent78869ebff4f6bff7bd07e45435f2996f64ddc7d5 (diff)
bgpd: Fix crash when rd has no data
There exists a state where we may have a rd node but no individual evpn prefix nodes in the two level table: (gdb) bt at bgpd/bgp_evpn_vty.c:1190 filter=FILTER_RELAXED) at lib/command.c:1060 at lib/command.c:1119 vtysh=vtysh@entry=0) at lib/command.c:1273 (gdb) f 5 at bgpd/bgp_evpn_vty.c:1190 1190 bgpd/bgp_evpn_vty.c: No such file or directory. (gdb) p buf $1 = "[2]:[0]:[48]:[00:00:00:00:00:00]", '\000' <repeats 240 times>... (gdb) p json_nroute $2 = (json_object *) 0x0 (gdb) p rd_header $3 = 1 (gdb) p buf $4 = "[2]:[0]:[48]:[00:00:00:00:00:00]", '\000' <repeats 240 times>... (gdb) I'm not entirely sure that this is not a `different` problem in that the rd node should have been removed. But I think preventing the crash in a show command is probably the right thing to do here. Fixes: #4501 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/lib_errors.h')
0 files changed, 0 insertions, 0 deletions