aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2012-06-06 09:36:52 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2012-06-06 09:36:52 +0000
commit40874f18de0027b8ae8bf303f98a278ef6c69bb7 (patch)
treef73abe9e1676062b738ce80d18df1b5458e2ed3b /sys
parent4fb52be9c28e2c209287534c045874130cef302e (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/contrib/pf/net/pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/contrib/pf/net/pf.c b/sys/contrib/pf/net/pf.c
index 7058b7dca4d2..ac5128262697 100644
--- a/sys/contrib/pf/net/pf.c
+++ b/sys/contrib/pf/net/pf.c
@@ -643,10 +643,10 @@ pf_src_connlimit(struct pf_state **state)
(*state)->key[PF_SK_WIRE]->af &&
(((*state)->direction == PF_OUT &&
PF_AEQ(&(*state)->src_node->addr,
- &sk->addr[0], sk->af)) ||
+ &sk->addr[1], sk->af)) ||
((*state)->direction == PF_IN &&
PF_AEQ(&(*state)->src_node->addr,
- &sk->addr[1], sk->af))) &&
+ &sk->addr[0], sk->af))) &&
((*state)->rule.ptr->flush &
PF_FLUSH_GLOBAL ||
(*state)->rule.ptr == st->rule.ptr)) {