mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-26 06:39:35 +00:00
Merge pull request #15139 from FRRouting/mergify/bp/stable/9.1/pr-15091
bgpd: fix ecommunity_fill_pbr_action heap-buffer-overflow (backport #15091)
This commit is contained in:
commit
f8cce3727f
@ -1581,8 +1581,8 @@ int ecommunity_fill_pbr_action(struct ecommunity_val *ecom_eval,
|
|||||||
* in the 'Network Address of Next- Hop'
|
* in the 'Network Address of Next- Hop'
|
||||||
* field of the associated MP_REACH_NLRI.
|
* field of the associated MP_REACH_NLRI.
|
||||||
*/
|
*/
|
||||||
struct ecommunity_ip *ip_ecom = (struct ecommunity_ip *)
|
struct ecommunity_ip *ip_ecom =
|
||||||
ecom_eval + 2;
|
(struct ecommunity_ip *)&ecom_eval->val[2];
|
||||||
|
|
||||||
api->u.zr.redirect_ip_v4 = ip_ecom->ip;
|
api->u.zr.redirect_ip_v4 = ip_ecom->ip;
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user