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;