Merge pull request #17434 from opensourcerouting/fix/bgp_color_parsing_ecomm

bgpd: Fix color extended community parsing
This commit is contained in:
Donald Sharp 2024-11-15 09:21:52 -05:00 committed by GitHub
commit e2314c9169
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -766,6 +766,8 @@ 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 && tmp_as > 3)
goto error;
as = (as_t)tmp_as;
}
} else if (*p == '.') {