summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2010-03-18 12:15:23 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2010-03-18 12:15:23 +0000
commit8110145e39c81ce418c5c5f16724d913f722daa9 (patch)
tree8d748f79d6611521c5eb221022f7063dea145d8b /sbin
parentb3dfb47d5b6ef4043c25753613566aac5d62ef5f (diff)
Fix rdr-to printing in pfctl -sr when reply-to is in use.
Found by Marcus Muelbuesch. ok henning@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pfctl_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index a5837f2943e..2e3538b76e1 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.262 2010/01/18 23:52:46 mcbride Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.263 2010/03/18 12:15:22 sthen Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1035,7 +1035,7 @@ print_rule(struct pf_rule *r, const char *anchor_call, int verbose)
print_pool(&r->nat, r->nat.proxy_port[0],
r->nat.proxy_port[1], r->af, PF_NAT, verbose);
}
- if (!r->rt && !anchor_call[0] && r->rdr.addr.type != PF_ADDR_NONE) {
+ if (!anchor_call[0] && r->rdr.addr.type != PF_ADDR_NONE) {
printf (" rdr-to ");
print_pool(&r->rdr, r->rdr.proxy_port[0],
r->rdr.proxy_port[1], r->af, PF_RDR, verbose);