summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorAlexandr Nedvedicky <sashan@cvs.openbsd.org>2017-11-25 22:16:48 +0000
committerAlexandr Nedvedicky <sashan@cvs.openbsd.org>2017-11-25 22:16:48 +0000
commit8a5b92a78506218a9550aec11a41139de3c28ae0 (patch)
treede1cb12a432e12dba109c0b7d0065aa6985635bd /sbin
parentc17f116572bef7f1b2ef36c47da2dd5b19c2ee2c (diff)
- pfctl rule optimizer: anchor name vs. anchor path mix up
OK bluhm@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pfctl_optimize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_optimize.c b/sbin/pfctl/pfctl_optimize.c
index a1b19781756..f6f8b259531 100644
--- a/sbin/pfctl/pfctl_optimize.c
+++ b/sbin/pfctl/pfctl_optimize.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_optimize.c,v 1.36 2016/08/03 16:27:25 krw Exp $ */
+/* $OpenBSD: pfctl_optimize.c,v 1.37 2017/11/25 22:16:47 sashan Exp $ */
/*
* Copyright (c) 2004 Mike Frantzen <frantzen@openbsd.org>
@@ -1307,7 +1307,7 @@ again:
tablenum++;
if (pfctl_define_table(tbl->pt_name, PFR_TFLAG_CONST | tbl->pt_flags, 1,
- pf->astack[0]->name, tbl->pt_buf, pf->astack[0]->ruleset.tticket)) {
+ pf->astack[0]->path, tbl->pt_buf, pf->astack[0]->ruleset.tticket)) {
warn("failed to create table %s in %s",
tbl->pt_name, pf->astack[0]->name);
return (1);