Merge pull request #2828 from pacovn/Coverity_1472311_null_check

staticd: null check (Coverity 1472311)
This commit is contained in:
Rafael Zalamena 2018-08-13 14:09:31 -03:00 committed by GitHub
commit 9af533f1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;