From 45b28d099c8b2573320b154b80f96aeb15b4ddd0 Mon Sep 17 00:00:00 2001 From: "F. Aragon" Date: Mon, 13 Aug 2018 18:10:09 +0200 Subject: [PATCH] staticd: null check (Coverity 1472311) Signed-off-by: F. Aragon --- staticd/static_nht.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staticd/static_nht.c b/staticd/static_nht.c index f9f937f905..c6e4587b6a 100644 --- a/staticd/static_nht.c +++ b/staticd/static_nht.c @@ -42,7 +42,7 @@ void static_nht_update(struct prefix *p, uint32_t nh_num, vrf = vrf_lookup_by_id(vrf_id); - if (!vrf->info) + if (!vrf || !vrf->info) return; svrf = vrf->info; -- 2.39.5