From 3f03ec1021600ee24e1654443f00a57facab62d6 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 5 Jan 2024 13:02:16 -0500 Subject: [PATCH] bgpd: data is set but never used I've kept the assignment in a comment because I am concerned about new code being added later that the data pointer would not be set correctly. Next coder can see the commented out line and uncomment it. Signed-off-by: Donald Sharp --- bgpd/bgp_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index ca8dade8e8b8..f94b64d0bda4 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -3349,7 +3349,7 @@ static void bgp_dynamic_capability_fqdn(uint8_t *pnt, int action, memcpy(&str, data, len); str[len] = '\0'; } - data += len; + /* data += len; In case new code is ever added */ if (len) { XFREE(MTYPE_BGP_PEER_HOST, peer->domainname);