summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-05-31 20:35:47 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2004-05-31 20:35:47 +0000
commitc196353a4554cf28d72977fbfe969697211114c6 (patch)
tree74ce168a7b969d9ad39d33dfb4d3042ae34d509a
parent166821a034a36619d9c845545b90e5c17b31e2de (diff)
thinko, reported by Fernando Braga
-rw-r--r--sys/net/pf_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c
index 6cc26ef5a0f..9b22d71108b 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.123 2004/05/21 23:10:47 dhartmei Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.124 2004/05/31 20:35:46 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1185,7 +1185,7 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
pf_mv_pool(&pf_pabuf, &rule->rpool.list);
if (((((rule->action == PF_NAT) || (rule->action == PF_RDR) ||
- (rule->action == PF_BINAT)) && !pr->anchor[0]) ||
+ (rule->action == PF_BINAT)) && rule->anchor == NULL) ||
(rule->rt > PF_FASTROUTE)) &&
(TAILQ_FIRST(&rule->rpool.list) == NULL))
error = EINVAL;