summaryrefslogtreecommitdiffstats
path: root/pimd/pim_instance.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-08-03 02:27:53 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-08-03 02:27:53 +0200
commite2c4bc88d240008bb2225955bfefc588d9cdaf2f (patch)
treedb5d2a62d6167b173cacfa462d3c280feefdc68d /pimd/pim_instance.c
parentpimd: Don't leak wheel memory (diff)
downloadfrr-e2c4bc88d240008bb2225955bfefc588d9cdaf2f.tar.xz
frr-e2c4bc88d240008bb2225955bfefc588d9cdaf2f.zip
pimd: Fix crash on shutdown in oil
When shutting down, do not free oil information after interface information since we use the data there to do so. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_instance.c')
-rw-r--r--pimd/pim_instance.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_instance.c b/pimd/pim_instance.c
index 5121dc94c..e664bf306 100644
--- a/pimd/pim_instance.c
+++ b/pimd/pim_instance.c
@@ -54,10 +54,10 @@ static void pim_instance_terminate(struct pim_instance *pim)
pim->rpf_hash = NULL;
}
- pim_oil_terminate(pim);
-
pim_if_terminate(pim);
+ pim_oil_terminate(pim);
+
pim_msdp_exit(pim);
XFREE(MTYPE_PIM_PIM_INSTANCE, pim);