diff options
author | Donald Sharp <sharpd@nvidia.com> | 2024-10-17 13:42:47 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2024-10-17 13:42:47 +0200 |
commit | 5a2a9e3b899a0114ec3280dcd8fd5171d1d18a36 (patch) | |
tree | 3ce52079b473b30f64b457c78a044e8f5ab464a6 /zebra/connected.c | |
parent | Merge pull request #17136 from opensourcerouting/clang-sa-19 (diff) | |
download | frr-5a2a9e3b899a0114ec3280dcd8fd5171d1d18a36.tar.xz frr-5a2a9e3b899a0114ec3280dcd8fd5171d1d18a36.zip |
zebra: Fix possible null deref discovered by coverity
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to '')
-rw-r--r-- | zebra/connected.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/connected.c b/zebra/connected.c index ce26c14c0..ce4f6919d 100644 --- a/zebra/connected.c +++ b/zebra/connected.c @@ -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; |