summaryrefslogtreecommitdiffstats
path: root/isisd/isis_flags.h
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2008-01-29 20:29:44 +0100
committerPaul Jakma <paul.jakma@sun.com>2008-01-29 20:29:44 +0100
commitc7350c48462e305f18f6fb02eceac170f892e450 (patch)
treee2eff38fc86e29bcd394d57d69c5ecd7ce7e9d40 /isisd/isis_flags.h
parent[bgpd] fix crash on startup if compiled IPv4-only (diff)
downloadfrr-c7350c48462e305f18f6fb02eceac170f892e450.tar.xz
frr-c7350c48462e305f18f6fb02eceac170f892e450.zip
[isisd] Bug #437: fix ssert caused by bad list management
2008-01-29 James Carlson <james.d.carlson@sun.com> * Fix bug #437, assert due to bogus index management * isis_flags.c: (flags_initialize) new * (flags_get_index) fix off by one, leading to list assert on null node data. (flags_free_index) ditto. * isisd.c: (isis_area_create) use flags_initialize (isis_area_destroy) deconfigure circuits when taking down area.
Diffstat (limited to 'isisd/isis_flags.h')
-rw-r--r--isisd/isis_flags.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/isisd/isis_flags.h b/isisd/isis_flags.h
index f2421f2f4..13dd9e145 100644
--- a/isisd/isis_flags.h
+++ b/isisd/isis_flags.h
@@ -28,6 +28,7 @@
* the support will be achived using the newest drafts */
#define ISIS_MAX_CIRCUITS 32 /* = 1024 */ /*FIXME:defined in lsp.h as well */
+void flags_initialize (struct flags *flags);
struct flags *new_flags (int size);
int flags_get_index (struct flags *flags);
void flags_free_index (struct flags *flags, int index);