summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsashan <sashan@openbsd.org>2017-11-14 22:17:41 +0000
committersashan <sashan@openbsd.org>2017-11-14 22:17:41 +0000
commitaeb2b655bc610085f06b3cd0119931b78b61d192 (patch)
tree6ffb0b324224e7cadb8b98359176e0aaa7c06045
parentInverse logic, issue found by henning@. MPLS VPN is still broken though. (diff)
downloadwireguard-openbsd-aeb2b655bc610085f06b3cd0119931b78b61d192.tar.xz
wireguard-openbsd-aeb2b655bc610085f06b3cd0119931b78b61d192.zip
- nested anchors vs. pfctl/parse.y
bug reported and fix tested by Leonardo Guardati OK bluhm@
-rw-r--r--sbin/pfctl/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index c170e60d2a0..e1dcfbc382f 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.664 2017/11/13 11:30:11 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.665 2017/11/14 22:17:41 sashan Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -4133,7 +4133,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)) {
yyerror("cannot define table %s: %s", name,
pfr_strerror(errno));
goto _error;