Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-2-0]: src/sys/net Pull up following revision(s) (requested by chr...
details: https://anonhg.NetBSD.org/src/rev/2530c7753992
branches: netbsd-2-0
changeset: 564937:2530c7753992
user: tron <tron%NetBSD.org@localhost>
date: Mon Jan 09 13:31:22 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 44c5b40722fc -r 2530c7753992 sys/net/if_bridge.c
--- a/sys/net/if_bridge.c Fri Jan 06 23:54:35 2006 +0000
+++ b/sys/net/if_bridge.c Mon Jan 09 13:31:22 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.2 2006/01/09 13:31:22 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.2 2006/01/09 13:31:22 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