From: Christian Grothoff Date: Mon, 20 Jun 2011 13:27:28 +0000 (+0000) Subject: helping w32 X-Git-Tag: initial-import-from-subversion-38251~18070 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b8abe89711cc64d40e9d4f364036e04d3a16f619;p=oweals%2Fgnunet.git helping w32 --- diff --git a/src/util/service.c b/src/util/service.c index 1e70e3ada..dbbdba0a4 100644 --- a/src/util/service.c +++ b/src/util/service.c @@ -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,