diff options
| author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2017-10-27 09:32:13 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-27 09:32:13 -0500 |
| commit | e4715aed63b9b791f35baa8abeb473870bb62213 (patch) | |
| tree | d7e2952ccfff172bf62c5e10b4d97e5e5c021e46 /pimd/pim_zebra.c | |
| parent | f7d9ebf4dafc0d4247ded6afca47c6bc63883555 (diff) | |
| parent | 819f099bdda04e7e378f916eb0f8e3da669cd8ae (diff) | |
Merge pull request #1365 from donaldsharp/pim_vrf_cleanup
pimd: Cleanup vrf SA issues exposed by recent commits
Diffstat (limited to 'pimd/pim_zebra.c')
| -rw-r--r-- | pimd/pim_zebra.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c index 8c90ccbed1..bee6521b6c 100644 --- a/pimd/pim_zebra.c +++ b/pimd/pim_zebra.c @@ -348,7 +348,11 @@ static int pim_zebra_if_address_del(int command, struct zclient *client, struct connected *c; struct prefix *p; struct vrf *vrf = vrf_lookup_by_id(vrf_id); - struct pim_instance *pim = vrf->info; + struct pim_instance *pim; + + if (!vrf) + return 0; + pim = vrf->info; /* zebra api notifies address adds/dels events by using the same call |
