summaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2010-01-15 18:20:24 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2010-01-15 18:20:24 +0000
commitefe15de128add506fb4055690c47221eb73d6346 (patch)
tree865f1922996f1e3e9a3218150ac4c08a5913f99e /sys/netinet/in_pcb.c
parent11fef8fbaba31074be2bcaa88ef3f2ecc33861f6 (diff)
Replace pool_get() + bzero() with pool_get(..., PR_ZERO).
With input from oga@ and krw@ ok oga@ krw@ thib@ markus@ mk@
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r--sys/netinet/in_pcb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 848ed63bcda..55487b77f38 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.c,v 1.110 2009/12/23 07:40:31 guenther Exp $ */
+/* $OpenBSD: in_pcb.c,v 1.111 2010/01/15 18:20:23 chl Exp $ */
/* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */
/*
@@ -188,10 +188,9 @@ in_pcballoc(so, v)
"inpcbpl", NULL);
inpcb_pool_initialized = 1;
}
- inp = pool_get(&inpcb_pool, PR_NOWAIT);
+ inp = pool_get(&inpcb_pool, PR_NOWAIT|PR_ZERO);
if (inp == NULL)
return (ENOBUFS);
- bzero((caddr_t)inp, sizeof(*inp));
inp->inp_table = table;
inp->inp_socket = so;
inp->inp_seclevel[SL_AUTH] = ipsec_auth_default_level;