Skip to content

Commit

Permalink
zebra: Fix possible null deref discovered by coverity
Browse files Browse the repository at this point in the history
Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Oct 17, 2024
1 parent 466efab commit 5a2a9e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zebra/connected.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,9 @@ static void connected_remove_kernel_for_connected(afi_t afi, safi_t safi, struct
rib_dest_t *dest;
struct route_table *table = zebra_vrf_table(afi, SAFI_UNICAST, zvrf->vrf->vrf_id);

if (!table)
return;

rn = route_node_match(table, p);
if (!rn)
return;
Expand Down

0 comments on commit 5a2a9e3

Please sign in to comment.