mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 03:25:49 +00:00
Merge pull request #5464 from qlyoung/fix-bgp-prefix-orf-heap-overflow
lib: fix heap buf overflow when adding prefix orf
This commit is contained in:
commit
a825edad8d
@ -1891,6 +1891,8 @@ int prefix_bgp_orf_set(char *name, afi_t afi, struct orf_prefix *orfp,
|
|||||||
if (!plist)
|
if (!plist)
|
||||||
return CMD_WARNING_CONFIG_FAILED;
|
return CMD_WARNING_CONFIG_FAILED;
|
||||||
|
|
||||||
|
apply_mask(&orfp->p);
|
||||||
|
|
||||||
if (set) {
|
if (set) {
|
||||||
pentry = prefix_list_entry_make(
|
pentry = prefix_list_entry_make(
|
||||||
&orfp->p, (permit ? PREFIX_PERMIT : PREFIX_DENY),
|
&orfp->p, (permit ? PREFIX_PERMIT : PREFIX_DENY),
|
||||||
|
Loading…
Reference in New Issue
Block a user