summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-02-06 03:35:00 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-02-06 03:35:00 +0000
commit61b002daf1c327db64ad29d25cebdc79523ca62a (patch)
tree47eb8686a111694455ee7c4e06773a077125a53c /sys
parentb8bb5660364193fad653877752cda9318d6927fe (diff)
forgot to bzero() malloced memory
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_loop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 517b0d21611..28d2ab5327d 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_loop.c,v 1.16 2001/02/06 00:22:21 mickey Exp $ */
+/* $OpenBSD: if_loop.c,v 1.17 2001/02/06 03:34:59 mickey Exp $ */
/* $NetBSD: if_loop.c,v 1.15 1996/05/07 02:40:33 thorpej Exp $ */
/*
@@ -156,6 +156,7 @@ loopattach(n)
MALLOC(ifp, struct ifnet *, sizeof(*ifp), M_DEVBUF, M_NOWAIT);
if (ifp == NULL)
return;
+ bzero(ifp, sizeof(struct ifnet));
if (i == 0)
lo0ifp = ifp;
sprintf(ifp->if_xname, "lo%d", i);