diff options
author | hasso <hasso> | 2004-12-29 19:34:22 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-12-29 19:34:22 +0000 |
commit | 4660687a38034d60296fbc9e82aae772011c407f (patch) | |
tree | 5a0d7caea1ba0958c8f9780da038654ce4f10fed /isisd/isis_csm.c | |
parent | 1d69fdf645d8434e8e1488f8bf0c73613df09da9 (diff) | |
download | quagga-4660687a38034d60296fbc9e82aae772011c407f.tar.bz2 quagga-4660687a38034d60296fbc9e82aae772011c407f.tar.xz |
Don't crash during interface up/down events.
Diffstat (limited to 'isisd/isis_csm.c')
-rw-r--r-- | isisd/isis_csm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/isisd/isis_csm.c b/isisd/isis_csm.c index 8e57d398..58a0b295 100644 --- a/isisd/isis_csm.c +++ b/isisd/isis_csm.c @@ -125,6 +125,7 @@ isis_csm_state_change (int event, struct isis_circuit *circuit, void *arg) isis_circuit_if_del (circuit); listnode_delete (isis->init_circ_list, circuit); isis_circuit_del (circuit); + circuit = NULL; break; } break; @@ -143,6 +144,7 @@ isis_csm_state_change (int event, struct isis_circuit *circuit, void *arg) case ISIS_DISABLE: isis_circuit_deconfigure (circuit, (struct isis_area *) arg); isis_circuit_del (circuit); + circuit = NULL; break; case IF_DOWN_FROM_Z: zlog_warn ("circuit already disconnected"); |