Skip to content

Commit

Permalink
Merge pull request FRRouting#17434 from opensourcerouting/fix/bgp_col…
Browse files Browse the repository at this point in the history
…or_parsing_ecomm

bgpd: Fix color extended community parsing
  • Loading branch information
donaldsharp authored Nov 15, 2024
2 parents 076879a + f765bc4 commit e2314c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bgpd/bgp_ecommunity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 == '.') {
Expand Down

0 comments on commit e2314c9

Please sign in to comment.