Skip to content

Commit

Permalink
Merge pull request #17154 from donaldsharp/connected_coverity
Browse files Browse the repository at this point in the history
zebra: Fix possible null deref discovered by coverity
  • Loading branch information
Jafaral authored Oct 17, 2024
2 parents 466efab + 5a2a9e3 commit ba60b39
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 ba60b39

Please sign in to comment.