pfctl: fix nested inline anchors

Import the OpenBSD fix for nested inline anchors.

PR:		196314
Submitted by:	krichy@cflinux.hu
Obtained from:	OpenBSD
This commit is contained in:
Kristof Provost 2016-11-10 18:41:43 +00:00
parent 339be86fdb
commit 2fd47dea4e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308486

View File

@ -1339,7 +1339,7 @@ pfctl_load_rule(struct pfctl *pf, char *path, struct pf_rule *r, int depth)
else
snprintf(&path[len], MAXPATHLEN - len,
"%s", r->anchor->name);
name = path;
name = r->anchor->name;
} else
name = r->anchor->path;
} else