diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index eafc637951fc..e08996a54250 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -4083,7 +4083,7 @@ pool_opt : BITMASK { pool_opts.staticport = 1; } | STICKYADDRESS { - if (filter_opts.marker & POM_STICKYADDRESS) { + if (pool_opts.marker & POM_STICKYADDRESS) { yyerror("sticky-address cannot be redefined"); YYERROR; }