From 4660687a38034d60296fbc9e82aae772011c407f Mon Sep 17 00:00:00 2001 From: hasso Date: Wed, 29 Dec 2004 19:34:22 +0000 Subject: Don't crash during interface up/down events. --- isisd/isis_zebra.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'isisd/isis_zebra.c') diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c index c7d05334..bcd00184 100644 --- a/isisd/isis_zebra.c +++ b/isisd/isis_zebra.c @@ -135,6 +135,9 @@ isis_zebra_if_state_up (int command, struct zclient *zclient, if (if_is_up (ifp)) { zebra_interface_if_set_value (zclient->ibuf, ifp); + /* HT: This is wrong actually. We can't assume that circuit exist + * if we delete circuit during if_state_down event. Needs rethink. + * TODO */ isis_circuit_update_params (circuit_scan_by_ifp (ifp), ifp); return 0; } -- cgit v1.2.1