diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2007-09-13 21:00:15 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2007-09-13 21:00:15 +0000 |
commit | 183780867808cc69f00f0dabcd596ef8905aa53b (patch) | |
tree | b5b503800b7e86b5706403033664a94d100d385b /sys/net/pfkey.c | |
parent | decd7804d940b3795410578dbed91acf92181aba (diff) |
Convert MALLOC/FREE to malloc/free and use M_ZERO where applicable.
ok krw@
Diffstat (limited to 'sys/net/pfkey.c')
-rw-r--r-- | sys/net/pfkey.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/pfkey.c b/sys/net/pfkey.c index a6dcf60db03..7b6f92a8792 100644 --- a/sys/net/pfkey.c +++ b/sys/net/pfkey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfkey.c,v 1.16 2004/11/26 18:02:22 markus Exp $ */ +/* $OpenBSD: pfkey.c,v 1.17 2007/09/13 21:00:14 hshoexer Exp $ */ /* * @(#)COPYRIGHT 1.1 (NRL) 17 January 1995 @@ -201,9 +201,8 @@ pfkey_attach(struct socket *socket, struct mbuf *proto) int s; if (!(socket->so_pcb = malloc(sizeof(struct rawcb), - M_PCB, M_DONTWAIT))) + M_PCB, M_DONTWAIT | M_ZERO))) return (ENOMEM); - bzero(socket->so_pcb, sizeof(struct rawcb)); s = splnet(); rval = raw_usrreq(socket, PRU_ATTACH, NULL, proto, NULL); |