diff options
author | F. Aragon <paco@voltanet.io> | 2018-08-13 18:10:09 +0200 |
---|---|---|
committer | F. Aragon <paco@voltanet.io> | 2018-08-13 18:10:09 +0200 |
commit | 45b28d099c8b2573320b154b80f96aeb15b4ddd0 (patch) | |
tree | 3aaa71dde975131213a2c8641a5ddd2dee940714 /staticd | |
parent | Merge pull request #2809 from opensourcerouting/routemap-rpki-fix (diff) | |
download | frr-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.c | 2 |
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; |