-fix uninitialized sin_zero
authorChristian Grothoff <christian@grothoff.org>
Fri, 23 Dec 2011 15:05:46 +0000 (15:05 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 23 Dec 2011 15:05:46 +0000 (15:05 +0000)
src/ats/ats_api_scheduling.c

index b2dcc13011d6c8ff7019995616dec90e040e9aa6..31b032f72568df34bc967099b416899d366b9231 100644 (file)
@@ -678,8 +678,8 @@ interface_proc (void *cls, const char *name,
     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