gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r18768 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r18768 - gnunet/src/ats
Date: Fri, 23 Dec 2011 16:05:46 +0100

Author: grothoff
Date: 2011-12-23 16:05:46 +0100 (Fri, 23 Dec 2011)
New Revision: 18768

Modified:
   gnunet/src/ats/ats_api_scheduling.c
Log:
-fix uninitialized sin_zero

Modified: gnunet/src/ats/ats_api_scheduling.c
===================================================================
--- gnunet/src/ats/ats_api_scheduling.c 2011-12-23 15:04:57 UTC (rev 18767)
+++ gnunet/src/ats/ats_api_scheduling.c 2011-12-23 15:05:46 UTC (rev 18768)
@@ -678,8 +678,8 @@
     net->netmask = (struct sockaddr *) &tmp[1];
     net->length = addrlen;
 
+    memset (&network4, 0, sizeof (network4));
     network4.sin_family = AF_INET;
-    network4.sin_port = htons (0);
 #if HAVE_SOCKADDR_IN_SIN_LEN
     network4.sin_len = sizeof (network4);
 #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]