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 <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2024-01-05 13:02:16 -05:00
parent 84877e60db
commit 3f03ec1021

View File

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