From 8e771bda840e189eed2851f63ad80cb1a235f40f Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Wed, 13 Nov 2024 10:03:17 +0200 Subject: [PATCH] bgpd: Fix color extended community parsing CID: 1601739 Fixes: 937cf4db1738d768ed7dac8677d16f7585bb75de ("bgpd:support of color extended community color-only types") Signed-off-by: Donatas Abraitis --- bgpd/bgp_ecommunity.c | 2 -- 1 file changed, 2 deletions(-) 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 == '.') {