summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-11-13 09:03:17 +0100
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-11-13 09:03:17 +0100
commit8e771bda840e189eed2851f63ad80cb1a235f40f (patch)
tree71f6dbe25d7a1f70eba7cb170d7f0eac273a7dfa /bgpd
parentMerge pull request #17331 from Jafaral/ospf-instance (diff)
downloadfrr-8e771bda840e189eed2851f63ad80cb1a235f40f.tar.xz
frr-8e771bda840e189eed2851f63ad80cb1a235f40f.zip
bgpd: Fix color extended community parsing
CID: 1601739 Fixes: 937cf4db1738d768ed7dac8677d16f7585bb75de ("bgpd:support of color extended community color-only types") Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_ecommunity.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_ecommunity.c b/bgpd/bgp_ecommunity.c
index 065f4fef3..5935028a5 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 == '.') {