isisd: fix a crash due to an lsp-mtu issue
isisd crashed on startup if it was enabled for an interface with
a too small MTU.
To fix this, we treat this case as an invalid configuration and
disable isis on that interface if that case happens, since it is
a configuration error.
Signed-off-by: Christian Franke <nobody@nowhere.ws>
diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c
index a48afd2..01a9d1e 100644
--- a/isisd/isis_circuit.c
+++ b/isisd/isis_circuit.c
@@ -640,7 +640,7 @@
zlog_err("Interface MTU %zu on %s is too low to support area lsp mtu %u!",
isis_circuit_pdu_size(circuit), circuit->interface->name,
circuit->area->lsp_mtu);
- isis_circuit_down(circuit);
+ isis_circuit_update_all_srmflags(circuit, 0);
return ISIS_ERROR;
}