summaryrefslogtreecommitdiffstats
path: root/isisd/isis_circuit.c
diff options
context:
space:
mode:
authorpaco <paco@voltanet.io>2018-06-15 18:36:20 +0200
committerpaco <paco@voltanet.io>2018-06-15 18:36:20 +0200
commitc28135f38e3f2a9c229199bee47d9f2a780c14d4 (patch)
tree43684ff40901fb692c48f621c7b0f85a6cf24f2d /isisd/isis_circuit.c
parentMerge pull request #2458 from pacovn/Coverity_1221437_Unchecked_return_value (diff)
downloadfrr-c28135f38e3f2a9c229199bee47d9f2a780c14d4.tar.xz
frr-c28135f38e3f2a9c229199bee47d9f2a780c14d4.zip
isisd: out-of-bounds access (Coverity 1399309)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'isisd/isis_circuit.c')
-rw-r--r--isisd/isis_circuit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c
index 6f4d72cb1..f8df33d3e 100644
--- a/isisd/isis_circuit.c
+++ b/isisd/isis_circuit.c
@@ -357,14 +357,14 @@ void isis_circuit_del_addr(struct isis_circuit *circuit,
for (ALL_LIST_ELEMENTS_RO(circuit->ipv6_link, node,
ip6)) {
prefix2str((struct prefix *)ip6, (char *)buf,
- BUFSIZ);
+ sizeof(buf));
zlog_warn(" %s", buf);
}
zlog_warn(" -----");
for (ALL_LIST_ELEMENTS_RO(circuit->ipv6_non_link, node,
ip6)) {
prefix2str((struct prefix *)ip6, (char *)buf,
- BUFSIZ);
+ sizeof(buf));
zlog_warn(" %s", buf);
}
zlog_warn("End of addresses");