diff options
author | yasuoka <yasuoka@openbsd.org> | 2020-09-17 14:26:59 +0000 |
---|---|---|
committer | yasuoka <yasuoka@openbsd.org> | 2020-09-17 14:26:59 +0000 |
commit | 696680b724250db38ea924c50637722ab6b51a78 (patch) | |
tree | 5fe69414a8e177be526eb9fd92bc145e08dee84e /sbin/pfctl | |
parent | Set retransmit timeout for DELETE message on the replaced SA, not on (diff) | |
download | wireguard-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.y | 6 |
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; } |