helping w32
authorChristian Grothoff <christian@grothoff.org>
Mon, 20 Jun 2011 13:27:28 +0000 (13:27 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 20 Jun 2011 13:27:28 +0000 (13:27 +0000)
src/util/service.c

index 1e70e3ada5430bbe710378c3dc11e730836c3166..dbbdba0a4fa4ad0f7208d787778a2aa8815dddd9 100644 (file)
@@ -1024,9 +1024,9 @@ GNUNET_SERVICE_get_server_addresses (const char *serviceName,
          next = pos->ai_next;
          if ( (disablev6) && (pos->ai_family == AF_INET6))
            continue;
-         if (pos->ai_protocol != IPPROTO_TCP)
+         if ( (pos->ai_protocol != IPPROTO_TCP) && (pos->ai_protocol != 0) )
            continue; /* not TCP */
-         if (pos->ai_socktype != SOCK_STREAM)
+         if ( (pos->ai_socktype != SOCK_STREAM) && (pos->ai_socktype != 0) )
            continue; /* huh? */
 #if DEBUG_SERVICE
          GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,