summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_packet.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2023-10-25 13:24:04 +0200
committerGitHub <noreply@github.com>2023-10-25 13:24:04 +0200
commit91c5a471a72d2a0c683e41fc6eb0ddc4e2fe2bb0 (patch)
treea9da2913620efdf4a498255c5c2bc17989670bed /bgpd/bgp_packet.c
parentMerge pull request #14645 from opensourcerouting/fix/crash_mp_reach_nlri (diff)
parentbgpd: Drop unnecessary null-termination for fqdn (diff)
downloadfrr-91c5a471a72d2a0c683e41fc6eb0ddc4e2fe2bb0.tar.xz
frr-91c5a471a72d2a0c683e41fc6eb0ddc4e2fe2bb0.zip
Merge pull request #14651 from opensourcerouting/fix/bgpd_coverity_fqdn_capability
bgpd: Drop unnecessary null-termination for fqdn
Diffstat (limited to 'bgpd/bgp_packet.c')
-rw-r--r--bgpd/bgp_packet.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c
index 3092da847..a7514a26a 100644
--- a/bgpd/bgp_packet.c
+++ b/bgpd/bgp_packet.c
@@ -3303,8 +3303,6 @@ static void bgp_dynamic_capability_fqdn(uint8_t *pnt, int action,
data += len;
if (len) {
- str[len] = '\0';
-
XFREE(MTYPE_BGP_PEER_HOST, peer->hostname);
XFREE(MTYPE_BGP_PEER_HOST, peer->domainname);