summaryrefslogtreecommitdiff
path: root/pimd/pim_zebra.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-10-25 13:30:45 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-10-25 13:43:51 -0400
commit819f099bdda04e7e378f916eb0f8e3da669cd8ae (patch)
treef56b5f1f14bee98aeb694d0674b9912bd96b04b4 /pimd/pim_zebra.c
parentef47f23b913e9ff6ba85c807ed36cfbe782c1d75 (diff)
pimd: Cleanup vrf SA issues exposed by recent commits
A recent commit has shown that we were not consistent with handling of the vrf lookup. Adjust pim to do the right thing with vrf lookup to be consistent and to make SA happier. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_zebra.c')
-rw-r--r--pimd/pim_zebra.c6
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