Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/usr.sbin/mrouted Pull up revision 1.9 (requested by ito...



details:   https://anonhg.NetBSD.org/src/rev/05bbf236c958
branches:  netbsd-1-6
changeset: 527714:05bbf236c958
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Jun 04 11:57:10 2002 +0000

description:
Pull up revision 1.9 (requested by itojun in ticket #140):
missing memset() for sockaddr.  from deraadt

diffstat:

 usr.sbin/mrouted/vif.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 9cda4481da8c -r 05bbf236c958 usr.sbin/mrouted/vif.c
--- a/usr.sbin/mrouted/vif.c    Tue Jun 04 11:57:00 2002 +0000
+++ b/usr.sbin/mrouted/vif.c    Tue Jun 04 11:57:10 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vif.c,v 1.8 2000/10/12 06:07:04 augustss Exp $ */
+/*     $NetBSD: vif.c,v 1.8.2.1 2002/06/04 11:57:10 lukem Exp $        */
 
 /*
  * The mrouted program is covered by the license in the accompanying file
@@ -713,6 +713,7 @@
        struct sockaddr_in addr;
        int addrlen = sizeof(addr);
 
+       memset(&addr, 0, sizeof(addr));
        addr.sin_family = AF_INET;
 #if (defined(BSD) && (BSD >= 199103))
        addr.sin_len = sizeof addr;
@@ -800,6 +801,7 @@
        struct sockaddr_in addr;
        int addrlen = sizeof(addr);
 
+       memset(&addr, 0, sizeof(addr));
        addr.sin_family = AF_INET;
 #if (defined(BSD) && (BSD >= 199103))
        addr.sin_len = sizeof addr;



Home | Main Index | Thread Index | Old Index