diff options
author | 2009-09-16 12:26:55 +0000 | |
---|---|---|
committer | 2009-09-16 12:26:55 +0000 | |
commit | cf7c0bf78a33ef206aa59fa45176c4e59da4de08 (patch) | |
tree | bc0234be89f4678ae4b9627b0fef28816ddaf59a | |
parent | Allow -maxdepth 0; noticed by bluhm@ (diff) | |
download | wireguard-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.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 */ } |