]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Prevent crash if ZEBRA_ROUTE_ALL is used for a route type 10695/head
authorDonald Sharp <sharpd@nvidia.com>
Sun, 27 Feb 2022 19:00:41 +0000 (14:00 -0500)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Tue, 1 Mar 2022 11:32:57 +0000 (13:32 +0200)
commitba87fca976283dfb3ba385010600dcf6b238e4e6
tree27c20435a16b0bef0d77fc723e876652147bff17
parent5772419c1ce198b4c1f5ee93c9182a7f0f47d80a
zebra: Prevent crash if ZEBRA_ROUTE_ALL is used for a route type

FRR will crash when the re->type is a ZEBRA_ROUTE_ALL and it
is inserted into the meta-queue.  Let's just put some basic
code in place to prevent a crash from happening.  No routing
protocol should be using ZEBRA_ROUTE_ALL as a value but
bugs do happen.  Let's just accept the weird route type
gracefully and move on.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_rib.c