From 17395e9e3693eb6f231a750e6e21e34123478929 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Fri, 9 Apr 2010 20:58:07 +0000 Subject: replace pool_get(), memset(,0,) with pool_get(,PR_ZERO) as $DEITY intended. ok claudio@, henning@ --- sys/net/pf_osfp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/net/pf_osfp.c b/sys/net/pf_osfp.c index 0824e5b9ff2..a620282d4c4 100644 --- a/sys/net/pf_osfp.c +++ b/sys/net/pf_osfp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_osfp.c,v 1.16 2010/01/18 23:52:46 mcbride Exp $ */ +/* $OpenBSD: pf_osfp.c,v 1.17 2010/04/09 20:58:06 oga Exp $ */ /* * Copyright (c) 2003 Mike Frantzen @@ -368,9 +368,8 @@ pf_osfp_add(struct pf_osfp_ioctl *fpioc) return (ENOMEM); } else { if ((fp = pool_get(&pf_osfp_pl, - PR_WAITOK|PR_LIMITFAIL)) == NULL) + PR_WAITOK|PR_ZERO|PR_LIMITFAIL)) == NULL) return (ENOMEM); - memset(fp, 0, sizeof(*fp)); fp->fp_tcpopts = fpioc->fp_tcpopts; fp->fp_wsize = fpioc->fp_wsize; fp->fp_psize = fpioc->fp_psize; -- cgit v1.2.3