diff options
Diffstat (limited to 'staticd')
-rw-r--r-- | staticd/static_nht.c | 2 | ||||
-rw-r--r-- | staticd/static_zebra.c | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/staticd/static_zebra.c b/staticd/static_zebra.c index 27e126e2a..f3175e91f 100644 --- a/staticd/static_zebra.c +++ b/staticd/static_zebra.c @@ -119,7 +119,7 @@ static int interface_state_up(int command, struct zclient *zclient, ifp = zebra_interface_if_lookup(zclient->ibuf); - if (if_is_vrf(ifp)) { + if (ifp && if_is_vrf(ifp)) { struct static_vrf *svrf = static_vrf_lookup_by_id(vrf_id); static_fixup_vrf_ids(svrf); |