summaryrefslogtreecommitdiff
path: root/sys/net/pf_osfp.c
diff options
context:
space:
mode:
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;