summaryrefslogtreecommitdiffstats
path: root/sys/net/pf_osfp.c
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2010-04-09 20:58:06 +0000
committeroga <oga@openbsd.org>2010-04-09 20:58:06 +0000
commit53545e0c197f1b3ee1b36ce56ab4c9528169fd3b (patch)
tree6aaa78bce24dc6e45f6ddefbf2be517db2eb9867 /sys/net/pf_osfp.c
parent- fix up SYNOPSIS; it's not perfect yet though... (diff)
downloadwireguard-openbsd-53545e0c197f1b3ee1b36ce56ab4c9528169fd3b.tar.xz
wireguard-openbsd-53545e0c197f1b3ee1b36ce56ab4c9528169fd3b.zip
replace pool_get(), memset(,0,) with pool_get(,PR_ZERO) as $DEITY
intended. ok claudio@, henning@
Diffstat (limited to 'sys/net/pf_osfp.c')
-rw-r--r--sys/net/pf_osfp.c5
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;