diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c index 065f4fef3772..5935028a5995 100644 --- a/bgpd/bgp_ecommunity.c +++ b/bgpd/bgp_ecommunity.c @@ -766,8 +766,6 @@ static const char *ecommunity_gettoken(const char *str, void *eval_ptr, if (*endptr != '\0' || tmp_as > BGP_AS4_MAX || errno) goto error; - if (*token == ecommunity_token_color && as > 3) - goto error; as = (as_t)tmp_as; } } else if (*p == '.') {