summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2005-05-24 17:41:13 +0000
committerclaudio <claudio@openbsd.org>2005-05-24 17:41:13 +0000
commit41d0861cf91661ce0749dcca08aff107b9a66eb6 (patch)
treeb5c5cd06970fa355b4ce22a4fbe2ef191b40878d
parentSwitch atomicio to use a simpler interface; it now returns a size_t (diff)
downloadwireguard-openbsd-41d0861cf91661ce0749dcca08aff107b9a66eb6.tar.xz
wireguard-openbsd-41d0861cf91661ce0749dcca08aff107b9a66eb6.zip
Remove unnecessary error check that is already done in parsecommunity().
-rw-r--r--usr.sbin/bgpd/parse.y7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index 3b0ac5f6a18..f379ed13e69 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.162 2005/04/28 13:54:45 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.163 2005/05/24 17:41:13 claudio Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1331,11 +1331,6 @@ filter_set_opt : LOCALPREF number {
YYERROR;
}
free($2);
- if ($$->action.community.as <= 0 ||
- $$->action.community.as > 0xffff) {
- yyerror("Invalid community");
- YYERROR;
- }
/* Don't allow setting of unknown well-known types */
if ($$->action.community.as == COMMUNITY_WELLKNOWN) {
switch ($$->action.community.type) {