From ed7005d0ed56666736e57f2b262c875e76cf1626 Mon Sep 17 00:00:00 2001 From: Rajasekar Raja Date: Thu, 11 Apr 2024 22:27:37 -0700 Subject: [PATCH] zebra: backpressure - Fix Null ptr access (Coverity Issue) Fix dereferencing NULL ptr making coverity happy. Ticket :#3390099 Signed-off-by: Rajasekar Raja --- bgpd/bgp_zebra.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index dbba1dc71a..5247408f70 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -1782,7 +1782,7 @@ static void bgp_handle_route_announcements_to_zebra(struct event *e) table = bgp_dest_table(dest); install = CHECK_FLAG(dest->flags, BGP_NODE_SCHEDULE_FOR_INSTALL); - if (table && table->afi == AFI_L2VPN && table->safi == SAFI_EVPN) + if (table->afi == AFI_L2VPN && table->safi == SAFI_EVPN) is_evpn = true; if (BGP_DEBUG(zebra, ZEBRA)) -- 2.39.5