diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2009-09-16 12:26:56 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2009-09-16 12:26:56 +0000 |
commit | 36f86bc096e12bb2be63e1e6bdf72d2914882bcc (patch) | |
tree | 717a430555e2e1e8233a421c325dbbe45aac104c /sys/net/pf.c | |
parent | 30ae619a3c62f45ca391462d5482646c710d0c32 (diff) |
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
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 6 |
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 */ } |