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/mrinfo Pull up revision 1.13 (requested by ito...



details:   https://anonhg.NetBSD.org/src/rev/968fe5d4e9c2
branches:  netbsd-1-6
changeset: 527712:968fe5d4e9c2
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Jun 04 11:56:50 2002 +0000

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

diffstat:

 usr.sbin/mrinfo/mrinfo.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 0fdf0235410b -r 968fe5d4e9c2 usr.sbin/mrinfo/mrinfo.c
--- a/usr.sbin/mrinfo/mrinfo.c  Tue Jun 04 11:56:40 2002 +0000
+++ b/usr.sbin/mrinfo/mrinfo.c  Tue Jun 04 11:56:50 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mrinfo.c,v 1.12 2001/09/24 13:22:37 wiz Exp $  */
+/*     $NetBSD: mrinfo.c,v 1.12.2.1 2002/06/04 11:56:50 lukem Exp $    */
 
 /*
  * This tool requests configuration info from a multicast router
@@ -80,7 +80,7 @@
 static char rcsid[] =
     "@(#) Header: mrinfo.c,v 1.6 93/04/08 15:14:16 van Exp (LBL)";
 #else
-__RCSID("$NetBSD: mrinfo.c,v 1.12 2001/09/24 13:22:37 wiz Exp $");
+__RCSID("$NetBSD: mrinfo.c,v 1.12.2.1 2002/06/04 11:56:50 lukem Exp $");
 #endif
 #endif
 
@@ -414,6 +414,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