summaryrefslogtreecommitdiffstats
path: root/staticd
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-08-13 18:10:09 +0200
committerF. Aragon <paco@voltanet.io>2018-08-13 18:10:09 +0200
commit45b28d099c8b2573320b154b80f96aeb15b4ddd0 (patch)
tree3aaa71dde975131213a2c8641a5ddd2dee940714 /staticd
parentMerge pull request #2809 from opensourcerouting/routemap-rpki-fix (diff)
downloadfrr-45b28d099c8b2573320b154b80f96aeb15b4ddd0.tar.xz
frr-45b28d099c8b2573320b154b80f96aeb15b4ddd0.zip
staticd: null check (Coverity 1472311)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'staticd')
-rw-r--r--staticd/static_nht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/staticd/static_nht.c b/staticd/static_nht.c
index f9f937f90..c6e4587b6 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;