summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2009-02-16 23:54:00 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2009-02-16 23:54:00 +0000
commita921fcdb47616f154d655587ad8f95c2f1dddebf (patch)
tree949f8be4dfa75a65fa281d07df9ac3471c8a3590 /sbin/pfctl
parentf3c9ce4c57cf5b30ba66b26ba3dcfadbf6bb21e4 (diff)
fix pfctl -v printing of anchors, from camield@. Closes user/6065
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/pfctl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 12dab0c3304..3bc704fa121 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.278 2008/08/31 20:18:17 jmc Exp $ */
+/* $OpenBSD: pfctl.c,v 1.279 2009/02/16 23:53:59 sthen Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1352,8 +1352,7 @@ pfctl_load_rule(struct pfctl *pf, char *path, struct pf_rule *r, int depth)
if (pf->opts & PF_OPT_VERBOSE) {
INDENT(depth, !(pf->opts & PF_OPT_VERBOSE2));
- print_rule(r, r->anchor ? r->anchor->name : "",
- pf->opts & PF_OPT_VERBOSE2);
+ print_rule(r, name, pf->opts & PF_OPT_VERBOSE2);
}
path[len] = '\0';
pfctl_clear_pool(&r->rpool);