mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-05 23:49:42 +00:00
Merge pull request #17422 from opensourcerouting/fix/coverity_bgp_color
bgpd: Fix color extended community parsing
This commit is contained in:
commit
e2d9e19282
@ -766,8 +766,6 @@ 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 && 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