From 56b8f9859c9a41eea255b4905a641df9bb21eee0 Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Sat, 23 Nov 2002 05:48:02 +0000 Subject: pass a pointer to the hash, not the first chunk of it --- sys/net/pf.c | 4 ++-- 1 file 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, -- cgit v1.2.3