the condition was reversed.

ok?
Index: parse.y
===================================================================
RCS file: /cvs/src/sbin/pfctl/parse.y,v
retrieving revision 1.702
diff -u -p -r1.702 parse.y
--- parse.y     17 Sep 2020 10:09:43 -0000      1.702
+++ parse.y     17 Sep 2020 14:23:42 -0000
@@ -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;
                        }

Reply via email to