mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 07:21:59 +00:00
Merge pull request #11706 from donaldsharp/safi_hate
bgpd: Safi can be SAFI_MAX which would allow a write beyond alloced
This commit is contained in:
commit
fbc3ab74ee
@ -3865,6 +3865,7 @@ DEFPY(bgp_default_afi_safi, bgp_default_afi_safi_cmd,
|
|||||||
else
|
else
|
||||||
safi = bgp_vty_safi_from_str(safi_str);
|
safi = bgp_vty_safi_from_str(safi_str);
|
||||||
|
|
||||||
|
assert(safi != SAFI_MAX);
|
||||||
if (no)
|
if (no)
|
||||||
bgp->default_af[afi][safi] = false;
|
bgp->default_af[afi][safi] = false;
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user