Skip to content

Commit

Permalink
Merge pull request #14651 from opensourcerouting/fix/bgpd_coverity_fq…
Browse files Browse the repository at this point in the history
…dn_capability

bgpd: Drop unnecessary null-termination for fqdn
  • Loading branch information
riw777 authored Oct 25, 2023
2 parents 7cdea4f + 0df6464 commit 91c5a47
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bgpd/bgp_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 91c5a47

Please sign in to comment.