summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2002-11-23 05:48:02 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2002-11-23 05:48:02 +0000
commit56b8f9859c9a41eea255b4905a641df9bb21eee0 (patch)
treee4aaafcc1ac9de219cd3ce7b51352065782943f3 /sys/net
parent7f0c7aa41e80deacc687b8b75609f12838564c33 (diff)
pass a pointer to the hash, not the first chunk of it
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 99b481c6de6..981b33d77e0 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.260 2002/11/23 05:16:58 mcbride Exp $ */
+/* $OpenBSD: pf.c,v 1.261 2002/11/23 05:48:01 mcbride Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1362,7 +1362,7 @@ pf_map_addr(u_int8_t af, struct pf_pool *rpool, struct pf_addr *saddr,
MD5Update(&context, (unsigned char *)&rpool->key,
sizeof(rpool->key));
MD5Final(hash, &context);
- PF_POOLMASK(naddr, raddr, rmask, (struct pf_addr *)hash, af);
+ PF_POOLMASK(naddr, raddr, rmask, (struct pf_addr *)&hash, af);
break;
case PF_POOL_ROUNDROBIN:
if (pf_match_addr(0, &cur->addr.addr, &cur->addr.mask,