summaryrefslogtreecommitdiffstats
path: root/sbin/pfctl
diff options
context:
space:
mode:
authoryasuoka <yasuoka@openbsd.org>2020-09-17 14:26:59 +0000
committeryasuoka <yasuoka@openbsd.org>2020-09-17 14:26:59 +0000
commit696680b724250db38ea924c50637722ab6b51a78 (patch)
tree5fe69414a8e177be526eb9fd92bc145e08dee84e /sbin/pfctl
parentSet retransmit timeout for DELETE message on the replaced SA, not on (diff)
downloadwireguard-openbsd-696680b724250db38ea924c50637722ab6b51a78.tar.xz
wireguard-openbsd-696680b724250db38ea924c50637722ab6b51a78.zip
Fix the previous commit whose conditions were reversed.
ok kn
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 04eee315932..60ef81488c3 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.702 2020/09/17 10:09:43 yasuoka Exp $ */
+/* $OpenBSD: parse.y,v 1.703 2020/09/17 14:26:59 yasuoka Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -1216,7 +1216,7 @@ antispoof_opt : LABEL label {
if ($2 < 0 || $2 > RT_TABLEID_MAX) {
yyerror("invalid rtable id");
YYERROR;
- } else if (lookup_rtable($2) >= 1) {
+ } else if (lookup_rtable($2) < 1) {
yyerror("rtable %lld does not exist", $2);
YYERROR;
}
@@ -2003,7 +2003,7 @@ filter_opt : USER uids {
if ($2 < 0 || $2 > RT_TABLEID_MAX) {
yyerror("invalid rtable id");
YYERROR;
- } else if (lookup_rtable($2) >= 1) {
+ } else if (lookup_rtable($2) < 1) {
yyerror("rtable %lld does not exist", $2);
YYERROR;
}