mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 17:06:28 +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;
|
data += len;
|
||||||
|
|
||||||
if (len) {
|
if (len) {
|
||||||
str[len] = '\0';
|
|
||||||
|
|
||||||
XFREE(MTYPE_BGP_PEER_HOST, peer->domainname);
|
XFREE(MTYPE_BGP_PEER_HOST, peer->domainname);
|
||||||
|
|
||||||
peer->domainname = XSTRDUP(MTYPE_BGP_PEER_HOST, str);
|
peer->domainname = XSTRDUP(MTYPE_BGP_PEER_HOST, str);
|
||||||
|
Loading…
Reference in New Issue
Block a user