mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-17 08:23:39 +00:00
Merge pull request #11695 from donaldsharp/afi_max
bgpd: Ensure we are not using AFI_MAX
This commit is contained in:
commit
8ff746efcb
@ -3855,6 +3855,11 @@ DEFPY(bgp_default_afi_safi, bgp_default_afi_safi_cmd,
|
||||
afi_t afi = bgp_vty_afi_from_str(afi_str);
|
||||
safi_t safi;
|
||||
|
||||
/*
|
||||
* Impossible situation but making coverity happy
|
||||
*/
|
||||
assert(afi != AFI_MAX);
|
||||
|
||||
if (strmatch(safi_str, "labeled"))
|
||||
safi = bgp_vty_safi_from_str("labeled-unicast");
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user