From b8abe89711cc64d40e9d4f364036e04d3a16f619 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 20 Jun 2011 13:27:28 +0000 Subject: [PATCH] helping w32 --- src/util/service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.25.1