mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 16:04:49 +00:00
bgpd: out-of-bounds access (Coverity 1399306)
Signed-off-by: F. Aragon <paco@voltanet.io>
This commit is contained in:
parent
e4a374681d
commit
5beb290a7b
@ -662,6 +662,7 @@ static int rfapi_str2route_type(const char *l3str, const char *pstr, afi_t *afi,
|
||||
vnc_import_bgp_exterior_redist_enable((bgp), (afi)); \
|
||||
break; \
|
||||
default: \
|
||||
if ((type) < ZEBRA_ROUTE_MAX) \
|
||||
vnc_redistribute_set((bgp), (afi), (type)); \
|
||||
break; \
|
||||
} \
|
||||
@ -677,6 +678,7 @@ static int rfapi_str2route_type(const char *l3str, const char *pstr, afi_t *afi,
|
||||
vnc_import_bgp_exterior_redist_disable((bgp), (afi)); \
|
||||
break; \
|
||||
default: \
|
||||
if ((type) < ZEBRA_ROUTE_MAX) \
|
||||
vnc_redistribute_unset((bgp), (afi), (type)); \
|
||||
break; \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user