forked from Mirror/frr
Merge pull request #17154 from donaldsharp/connected_coverity
zebra: Fix possible null deref discovered by coverity
This commit is contained in:
commit
ba60b39f13
|
@ -191,6 +191,9 @@ static void connected_remove_kernel_for_connected(afi_t afi, safi_t safi, struct
|
||||||
rib_dest_t *dest;
|
rib_dest_t *dest;
|
||||||
struct route_table *table = zebra_vrf_table(afi, SAFI_UNICAST, zvrf->vrf->vrf_id);
|
struct route_table *table = zebra_vrf_table(afi, SAFI_UNICAST, zvrf->vrf->vrf_id);
|
||||||
|
|
||||||
|
if (!table)
|
||||||
|
return;
|
||||||
|
|
||||||
rn = route_node_match(table, p);
|
rn = route_node_match(table, p);
|
||||||
if (!rn)
|
if (!rn)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue