diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2009-03-30 14:29:31 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2009-03-30 14:29:31 +0000 |
commit | 03a05ac0dd4aa667d4f0266446340a7f759631d0 (patch) | |
tree | 960260e4ae2ddef2cc520428b4205ad6114e4c4d /sys | |
parent | 7f9dedcf89f03f1bda9012758c8192a7078707c2 (diff) |
bzero -> PR_ZERO
ok art@, henning@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_socket2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/uipc_socket2.c b/sys/kern/uipc_socket2.c index 7d7f876b486..a6590c7afcc 100644 --- a/sys/kern/uipc_socket2.c +++ b/sys/kern/uipc_socket2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket2.c,v 1.47 2009/03/15 19:40:41 miod Exp $ */ +/* $OpenBSD: uipc_socket2.c,v 1.48 2009/03/30 14:29:30 blambert Exp $ */ /* $NetBSD: uipc_socket2.c,v 1.11 1996/02/04 02:17:55 christos Exp $ */ /* @@ -162,10 +162,9 @@ sonewconn(struct socket *head, int connstatus) return ((struct socket *)0); if (head->so_qlen + head->so_q0len > head->so_qlimit * 3) return ((struct socket *)0); - so = pool_get(&socket_pool, PR_NOWAIT); + so = pool_get(&socket_pool, PR_NOWAIT|PR_ZERO); if (so == NULL) return ((struct socket *)0); - bzero(so, sizeof(*so)); so->so_type = head->so_type; so->so_options = head->so_options &~ SO_ACCEPTCONN; so->so_linger = head->so_linger; |