summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mpls.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-06-08 13:58:19 +0200
committerMark Stapp <mjs@voltanet.io>2020-06-10 14:11:54 +0200
commit2896f40e698943648e7760cd4e5e1d3c754bb3b7 (patch)
tree0b80f23c927aa469acf6658dcb257a0fc23f23b9 /zebra/zebra_mpls.c
parentMerge pull request #6546 from opensourcerouting/topofixes-2 (diff)
downloadfrr-2896f40e698943648e7760cd4e5e1d3c754bb3b7.tar.xz
frr-2896f40e698943648e7760cd4e5e1d3c754bb3b7.zip
zebra: fix coverity SA warnings
Fix a few coverity warnings. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_mpls.c')
-rw-r--r--zebra/zebra_mpls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c
index 25dd31a3b..31b100598 100644
--- a/zebra/zebra_mpls.c
+++ b/zebra/zebra_mpls.c
@@ -1561,7 +1561,8 @@ static void nhlfe_print(zebra_nhlfe_t *nhlfe, struct vty *vty)
case NEXTHOP_TYPE_IPV6:
case NEXTHOP_TYPE_IPV6_IFINDEX:
vty_out(vty, " via %s",
- inet_ntop(AF_INET6, &nexthop->gate.ipv6, buf, BUFSIZ));
+ inet_ntop(AF_INET6, &nexthop->gate.ipv6, buf,
+ sizeof(buf)));
if (nexthop->ifindex)
vty_out(vty, " dev %s",
ifindex2ifname(nexthop->ifindex,