From 881d5b3b61a00c6c69598c1d5076ae279263bd2c Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 14 Jun 2016 20:07:05 +0200 Subject: [PATCH] isisd: fix an error that was probably a result of copypasting The code should check for the existance of the correct list prior to accessing it. Signed-off-by: Christian Franke Signed-off-by: Christian Franke Acked-by: Donald Sharp --- isisd/isis_circuit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c index c66fa48263..c2b7ec7507 100644 --- a/isisd/isis_circuit.c +++ b/isisd/isis_circuit.c @@ -979,7 +979,7 @@ isis_circuit_print_vty (struct isis_circuit *circuit, struct vty *vty, vty_out(vty, " %s%s", buf, VTY_NEWLINE); } } - if (circuit->ipv6_link && listcount(circuit->ipv6_non_link) > 0) + if (circuit->ipv6_non_link && listcount(circuit->ipv6_non_link) > 0) { vty_out(vty, " IPv6 Prefixes:%s", VTY_NEWLINE); for (ALL_LIST_ELEMENTS_RO(circuit->ipv6_non_link, node, ip_addr)) -- 2.39.5