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; }
- diff: pfctl: error message for nonexisting rtable YASUOKA Masahiko
- Re: diff: pfctl: error message for nonexisting rt... Klemens Nanni
- Re: diff: pfctl: error message for nonexistin... YASUOKA Masahiko
- Re: diff: pfctl: error message for nonexi... Klemens Nanni
- Re: diff: pfctl: error message for no... YASUOKA Masahiko
- Re: diff: pfctl: error message f... Klemens Nanni
- Re: diff: pfctl: error messa... YASUOKA Masahiko
- Re: diff: pfctl: error m... YASUOKA Masahiko
- Re: diff: pfctl: error message for nonexisting rt... Klemens Nanni
- Re: diff: pfctl: error message for nonexistin... Klemens Nanni
- Re: diff: pfctl: error message for nonexi... YASUOKA Masahiko
- Re: diff: pfctl: error message for no... Klemens Nanni
- Re: diff: pfctl: error message for nonexi... Klemens Nanni
- Re: diff: pfctl: error message for no... Klemens Nanni
- Re: diff: pfctl: error message f... Alexandr Nedvedicky