summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-07-06 03:06:29 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-07-06 03:06:29 +0000
commit96f75be0bbb501b49f22744da633d0453013032a (patch)
treeb2ce5787435d47e1e224ce54902ca89cfebfdda7 /sys
parente8889c42e4603e164d8b848819b7aee4eec80698 (diff)
bzero PCB after allocation
Diffstat (limited to 'sys')
-rw-r--r--sys/netatalk/ddp_usrreq.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netatalk/ddp_usrreq.c b/sys/netatalk/ddp_usrreq.c
index a2285883e92..88e8b4514d9 100644
--- a/sys/netatalk/ddp_usrreq.c
+++ b/sys/netatalk/ddp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ddp_usrreq.c,v 1.4 2001/05/26 07:17:11 angelos Exp $ */
+/* $OpenBSD: ddp_usrreq.c,v 1.5 2001/07/06 03:06:28 angelos Exp $ */
/*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
@@ -462,10 +462,12 @@ at_pcballoc( so )
{
struct ddpcb *ddp;
- MALLOC( ddp, struct ddpcb *, sizeof(*ddp), M_PCB, M_NOWAIT );
+ MALLOC( ddp, struct ddpcb *, sizeof( *ddp ), M_PCB, M_NOWAIT );
if ( ddp == NULL ) {
return (ENOBUFS);
}
+ bzero( ddp, sizeof( *ddp ));
+
ddp->ddp_lsat.sat_port = ATADDR_ANYPORT;
ddp->ddp_next = ddpcb;