mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-24 08:23:50 +00:00
Merge pull request #5636 from qlyoung/fix-bgp-unaligned-addpath-id-pointer
bgpd: fix unaligned access to addpath id
This commit is contained in:
commit
1df967b141
@ -4515,7 +4515,8 @@ int bgp_nlri_parse_ip(struct peer *peer, struct attr *attr,
|
||||
if (pnt + BGP_ADDPATH_ID_LEN >= lim)
|
||||
return BGP_NLRI_PARSE_ERROR_PACKET_OVERFLOW;
|
||||
|
||||
addpath_id = ntohl(*((uint32_t *)pnt));
|
||||
memcpy(&addpath_id, pnt, 4);
|
||||
addpath_id = ntohl(addpath_id);
|
||||
pnt += BGP_ADDPATH_ID_LEN;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user