]> git.puffer.fish Git - matthieu/frr.git/commit
isisd: fix circuit state machine
authorPeter Szilagyi <peszilagyi@gmail.com>
Sat, 1 Oct 2011 13:11:45 +0000 (17:11 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 13 Feb 2012 23:06:00 +0000 (03:06 +0400)
commit7fd6cd819ff98f0580b745ba637990df9c20ef0f
treec95fc6bc290d170cd14a5962609df5baf577999d
parent4c0cf00afc4340a429a9c4830f638b4593d7c3af
isisd: fix circuit state machine

isisd has a so-called circuit state machine that takes care about
the interface state changes, such as initializing, down, up. When
an interface was brought down by a link failure, the interface
information was deleted and set to NULL. When the link was restored
later, the interface was looked up by the old pointer, but since it
was cleared, it was never found again, resulting in an interface
never entering the up state again.

Also, the program regularly crashed because of a deleted pointer in
the same context which was later accessed without any further
checking.

Signed-off-by: Fritz Reichmann <fritz@reichmann.nl>
isisd/isis_adjacency.c
isisd/isis_circuit.h
isisd/isis_csm.c
isisd/isis_lsp.c
isisd/isis_pdu.c