Merge pull request #17422 from opensourcerouting/fix/coverity_bgp_color

bgpd: Fix color extended community parsing
This commit is contained in:
Mark Stapp 2024-11-14 08:27:47 -05:00 committed by GitHub
commit e2d9e19282
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 == '.') {