summaryrefslogtreecommitdiff
path: root/isisd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2012-11-27 01:10:27 +0000
committerDavid Lamparter <equinox@opensourcerouting.org>2012-12-12 15:38:07 +0100
commitde543de3d7682eaeb8c9b657e9a3bb4bcd17993d (patch)
tree34ea71f71b59a717f1500d2f7b6860227ecaea6d /isisd
parentb72f345d2e078d4cd0559234d051214f58eef542 (diff)
isisd: fix spftree_area_del typo causing SEGV
spftree_area_del didn't clear the IPv6 L2 spftree due to a simple typo, leading to a SEGV on shutdown when the still-armed timer would try to run an IPv6 L2 SPF calculation with its data free'd already. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_spf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c
index 07b855b4..1cb51138 100644
--- a/isisd/isis_spf.c
+++ b/isisd/isis_spf.c
@@ -365,7 +365,7 @@ spftree_area_del (struct isis_area *area)
area->spftree[1] = NULL;
}
#ifdef HAVE_IPV6
- if (area->spftree[1] != NULL)
+ if (area->spftree6[1] != NULL)
{
isis_spftree_del (area->spftree6[1]);
area->spftree6[1] = NULL;