diff options
author | Russ White <russ@riw.us> | 2023-10-25 13:24:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 13:24:04 +0200 |
commit | 91c5a471a72d2a0c683e41fc6eb0ddc4e2fe2bb0 (patch) | |
tree | a9da2913620efdf4a498255c5c2bc17989670bed /bgpd/bgp_packet.c | |
parent | Merge pull request #14645 from opensourcerouting/fix/crash_mp_reach_nlri (diff) | |
parent | bgpd: Drop unnecessary null-termination for fqdn (diff) | |
download | frr-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.c | 2 |
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); |