git: 87adb6ab7660 - main - pfctl: nested anchors vs. pfctl/parse.y

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Wed, 25 Jun 2025 20:04:42 UTC
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=87adb6ab7660ac32237bc6e5976b0d01fff316b9

commit 87adb6ab7660ac32237bc6e5976b0d01fff316b9
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-06-17 09:24:31 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-06-25 20:04:15 +0000

    pfctl: nested anchors vs. pfctl/parse.y
    
    bug reported and fix tested by Leonardo Guardati
    
    OK bluhm@
    
    Obtained from:  OpenBSD, sashan <sashan@openbsd.org>, aeb2b655bc
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sbin/pfctl/parse.y | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 5d4d2b86fd58..0af53e2692d7 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -5548,7 +5548,7 @@ process_tabledef(char *name, struct table_opts *opts, int popts)
 		    &opts->init_nodes);
 	if (!(pf->opts & PF_OPT_NOACTION) &&
 	    pfctl_define_table(name, opts->flags, opts->init_addr,
-	    pf->anchor->name, &ab, pf->anchor->ruleset.tticket)) {
+	    pf->anchor->path, &ab, pf->anchor->ruleset.tticket)) {
 
 		if (sysctlbyname("net.pf.request_maxcount", &maxcount, &s,
 		    NULL, 0) == -1)