From: Christian Franke <[email protected]>

The code should check for the existance of the correct list prior to
accessing it.

Signed-off-by: Christian Franke <[email protected]>
---
 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 a48afd2..0b5f5f1 100644
--- a/isisd/isis_circuit.c
+++ b/isisd/isis_circuit.c
@@ -993,7 +993,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.8.0


_______________________________________________
Quagga-dev mailing list
[email protected]
https://lists.quagga.net/mailman/listinfo/quagga-dev

Reply via email to