Revert "bgpd: Fix color extended community parsing"

This reverts commit 8e771bda84.
This commit is contained in:
Donatas Abraitis 2024-11-15 08:14:32 +02:00
parent 076879a279
commit 2b3d41493d

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