Merge pull request #14651 from opensourcerouting/fix/bgpd_coverity_fqdn_capability

bgpd: Drop unnecessary null-termination for fqdn
This commit is contained in:
Russ White 2023-10-25 07:24:04 -04:00 committed by GitHub
commit 91c5a471a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);