summaryrefslogtreecommitdiff
path: root/lib/printf/printf-pos.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-05-12 09:39:27 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-05-12 10:20:28 -0400
commit56b91d107ffc090c621bac4f2ff93712c49f0d7b (patch)
treeb7601bde78ea1ae6a2db1c46c9f9a821babd2fcd /lib/printf/printf-pos.c
parent601db492b8465f6ff37efcf9113be381db744182 (diff)
bgpd: Prevent crash when issuing various forms of `bgp no-rib`
The `bgp no-rib` command cycles through all the bgp rib tables and removes them from zebra. Modify the code so that FRR notices that it is attempting to cycle through the safi's that are two level tables. In addition these safi's cannot just blindly remove the routes from the rib as that there are none explicitly. This code just prevents the crash in bgpd. It does not properly cycle through and remove the zebra changes made that are explicit to these afi's. This should be handled as appropriate by the developers on these safi's when it becomes important to them. Fixes: #11178 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/printf/printf-pos.c')
0 files changed, 0 insertions, 0 deletions