summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2009-09-16 12:26:55 +0000
committerhenning <henning@openbsd.org>2009-09-16 12:26:55 +0000
commitcf7c0bf78a33ef206aa59fa45176c4e59da4de08 (patch)
treebc0234be89f4678ae4b9627b0fef28816ddaf59a
parentAllow -maxdepth 0; noticed by bluhm@ (diff)
downloadwireguard-openbsd-cf7c0bf78a33ef206aa59fa45176c4e59da4de08.tar.xz
wireguard-openbsd-cf7c0bf78a33ef206aa59fa45176c4e59da4de08.zip
fix copy & paste error from almost a year ago (bad ryan)
PF_ANEQ call in pf_test_state_other in the IPVshit case used AF_INET, found by claudio
-rw-r--r--sys/net/pf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index dfd88fa218d..1201133eff9 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.660 2009/09/08 17:52:17 michele Exp $ */
+/* $OpenBSD: pf.c,v 1.661 2009/09/16 12:26:55 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -4715,10 +4715,10 @@ pf_test_state_other(struct pf_state **state, int direction, struct pfi_kif *kif,
#endif /* INET */
#ifdef INET6
case AF_INET6:
- if (PF_ANEQ(pd->src, &nk->addr[pd->sidx], AF_INET))
+ if (PF_ANEQ(pd->src, &nk->addr[pd->sidx], AF_INET6))
PF_ACPY(pd->src, &nk->addr[pd->sidx], pd->af);
- if (PF_ANEQ(pd->dst, &nk->addr[pd->didx], AF_INET))
+ if (PF_ANEQ(pd->dst, &nk->addr[pd->didx], AF_INET6))
PF_ACPY(pd->dst, &nk->addr[pd->didx], pd->af);
#endif /* INET6 */
}