summaryrefslogtreecommitdiff
path: root/isisd/isis_circuit.c
diff options
context:
space:
mode:
Diffstat (limited to 'isisd/isis_circuit.c')
-rw-r--r--isisd/isis_circuit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c
index 671ebbff..9a41c582 100644
--- a/isisd/isis_circuit.c
+++ b/isisd/isis_circuit.c
@@ -880,6 +880,10 @@ DEFUN (isis_circuit_type,
return CMD_WARNING;
}
+ /* XXX what to do when ip_router_isis is not executed */
+ if (circuit->area == NULL)
+ return CMD_WARNING;
+
assert (circuit);
circuit_t = string2circuit_t (argv[0]);