Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2]: src/sys/net Pull up following revision(s) (requested by chris...
details: https://anonhg.NetBSD.org/src/rev/8614882c218a
branches: netbsd-2
changeset: 564409:8614882c218a
user: tron <tron%NetBSD.org@localhost>
date: Mon Jan 09 13:29:53 2006 +0000
description:
Pull up following revision(s) (requested by christos in ticket #10219):
sys/net/if_bridge.c: revision 1.35
Make sure we initialize all structs to 0; from Xin LI
diffstat:
sys/net/if_bridge.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r f66ab76f374c -r 8614882c218a sys/net/if_bridge.c
--- a/sys/net/if_bridge.c Mon Jan 09 13:19:09 2006 +0000
+++ b/sys/net/if_bridge.c Mon Jan 09 13:29:53 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bridge.c,v 1.22.2.1 2004/10/08 03:11:13 jmc Exp $ */
+/* $NetBSD: if_bridge.c,v 1.22.2.1.2.1 2006/01/09 13:29:53 tron Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.22.2.1 2004/10/08 03:11:13 jmc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bridge.c,v 1.22.2.1.2.1 2006/01/09 13:29:53 tron Exp $");
#include "opt_bridge_ipf.h"
#include "opt_inet.h"
@@ -480,6 +480,7 @@
break;
}
+ memset(&args, 0, sizeof(args));
if (bc->bc_flags & BC_F_COPYIN) {
error = copyin(ifd->ifd_data, &args, ifd->ifd_len);
if (error)
@@ -797,6 +798,7 @@
LIST_FOREACH(brt, &sc->sc_rtlist, brt_list) {
if (len < sizeof(bareq))
goto out;
+ memset(&bareq, 0, sizeof(bareq));
strlcpy(bareq.ifba_ifsname, brt->brt_ifp->if_xname,
sizeof(bareq.ifba_ifsname));
memcpy(bareq.ifba_dst, brt->brt_addr, sizeof(brt->brt_addr));
Home |
Main Index |
Thread Index |
Old Index