summaryrefslogtreecommitdiff
path: root/sys/netnatm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netnatm')
-rw-r--r--sys/netnatm/natm_pcb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netnatm/natm_pcb.c b/sys/netnatm/natm_pcb.c
index 45d7c391266..e5f14669551 100644
--- a/sys/netnatm/natm_pcb.c
+++ b/sys/netnatm/natm_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: natm_pcb.c,v 1.7 2006/03/05 21:48:57 miod Exp $ */
+/* $OpenBSD: natm_pcb.c,v 1.8 2007/10/03 10:52:11 krw Exp $ */
/*
*
@@ -65,10 +65,9 @@ int wait;
{
struct natmpcb *npcb;
- MALLOC(npcb, struct natmpcb *, sizeof(*npcb), M_PCB, wait);
+ npcb = malloc(sizeof(*npcb), M_PCB, wait | M_ZERO);
if (npcb) {
- bzero(npcb, sizeof(*npcb));
npcb->npcb_flags = NPCB_FREE;
}
return(npcb);