mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 00:06:10 +00:00
Merge pull request #17434 from opensourcerouting/fix/bgp_color_parsing_ecomm
bgpd: Fix color extended community parsing
This commit is contained in:
commit
e2314c9169
@ -766,6 +766,8 @@ static const char *ecommunity_gettoken(const char *str, void *eval_ptr,
|
|||||||
if (*endptr != '\0' || tmp_as > BGP_AS4_MAX ||
|
if (*endptr != '\0' || tmp_as > BGP_AS4_MAX ||
|
||||||
errno)
|
errno)
|
||||||
goto error;
|
goto error;
|
||||||
|
if (*token == ecommunity_token_color && tmp_as > 3)
|
||||||
|
goto error;
|
||||||
as = (as_t)tmp_as;
|
as = (as_t)tmp_as;
|
||||||
}
|
}
|
||||||
} else if (*p == '.') {
|
} else if (*p == '.') {
|
||||||
|
Loading…
Reference in New Issue
Block a user