mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 02:46:26 +00:00
Merge pull request #14923 from opensourcerouting/fix/array_overrun_for_fqdn_domainname
bgpd: Do not null-terminate the domainname when receiving FQDN capability
This commit is contained in:
commit
4a163da009
@ -3339,8 +3339,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->domainname);
|
||||
|
||||
peer->domainname = XSTRDUP(MTYPE_BGP_PEER_HOST, str);
|
||||
|
Loading…
Reference in New Issue
Block a user