diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-09 20:58:07 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-09 20:58:07 +0000 |
commit | 17395e9e3693eb6f231a750e6e21e34123478929 (patch) | |
tree | b5ec1dc2a4f401bd09be1c652d3b1e909ef8466c /sys | |
parent | 43fe128a421bdcb0078bcfd3b9ab8d22fac09956 (diff) |
replace pool_get(), memset(,0,) with pool_get(,PR_ZERO) as $DEITY
intended.
ok claudio@, henning@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/pf_osfp.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 <frantzen@w4g.org> @@ -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; |