- pfctl $nr incorrect macro expansion
authorsashan <sashan@openbsd.org>
Mon, 25 Oct 2021 14:50:29 +0000 (14:50 +0000)
committersashan <sashan@openbsd.org>
Mon, 25 Oct 2021 14:50:29 +0000 (14:50 +0000)
commit6edf764c6fecd2f244a03489326750becf8654ce
tree501e2e6bd25e44631488632162140fb8398940ba
parent1315a76b0bfbcd7810a4cd1ec7530a6e4b3961a7
- pfctl $nr incorrect macro expansion

Issue reported by Kristof Provost from FreeBSD.
[ https://reviews.freebsd.org/D32488 ]

In order to fix the issue we must delay '$nr' macro
expansion after optimizer collapses ruleset.

OK kn@
sbin/pfctl/parse.y
sbin/pfctl/pfctl.c
sbin/pfctl/pfctl_parser.h