Skip to content

Commit ba60b39

Browse files
authored
Merge pull request #17154 from donaldsharp/connected_coverity
zebra: Fix possible null deref discovered by coverity
2 parents 466efab + 5a2a9e3 commit ba60b39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

zebra/connected.c

+3
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ static void connected_remove_kernel_for_connected(afi_t afi, safi_t safi, struct
191191
rib_dest_t *dest;
192192
struct route_table *table = zebra_vrf_table(afi, SAFI_UNICAST, zvrf->vrf->vrf_id);
193193

194+
if (!table)
195+
return;
196+
194197
rn = route_node_match(table, p);
195198
if (!rn)
196199
return;

0 commit comments

Comments
 (0)