diff options
| author | Christian Franke <nobody@nowhere.ws> | 2016-06-14 20:07:05 +0200 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-10-20 20:28:26 -0400 | 
| commit | 881d5b3b61a00c6c69598c1d5076ae279263bd2c (patch) | |
| tree | fdd80d1ac9529785fa249c7ab9b146d31b942c26 /isisd | |
| parent | b6175e0ca2a741e2efcf44422e014b0678cf0865 (diff) | |
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 <chris@opensourcerouting.org>
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'isisd')
| -rw-r--r-- | isisd/isis_circuit.c | 2 | 
1 files changed, 1 insertions, 1 deletions
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))  | 
