aboutsummaryrefslogtreecommitdiff
path: root/src/util/service.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-06-20 09:15:18 +0000
committerChristian Grothoff <christian@grothoff.org>2011-06-20 09:15:18 +0000
commit5b3c889e3795aff706409921b622228a43d04205 (patch)
tree18e4e7c9ceaabaa637433e8958d8ee2b7ff6f735 /src/util/service.c
parentb70139ece58a5e8204990c5df406e99f948da460 (diff)
downloadgnunet-5b3c889e3795aff706409921b622228a43d04205.tar.gz
gnunet-5b3c889e3795aff706409921b622228a43d04205.zip
avoid duplicate binds
Diffstat (limited to 'src/util/service.c')
-rw-r--r--src/util/service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/service.c b/src/util/service.c
index a82b9d12b..1e70e3ada 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -1024,6 +1024,10 @@ GNUNET_SERVICE_get_server_addresses (const char *serviceName,
1024 next = pos->ai_next; 1024 next = pos->ai_next;
1025 if ( (disablev6) && (pos->ai_family == AF_INET6)) 1025 if ( (disablev6) && (pos->ai_family == AF_INET6))
1026 continue; 1026 continue;
1027 if (pos->ai_protocol != IPPROTO_TCP)
1028 continue; /* not TCP */
1029 if (pos->ai_socktype != SOCK_STREAM)
1030 continue; /* huh? */
1027#if DEBUG_SERVICE 1031#if DEBUG_SERVICE
1028 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1032 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1029 "Service `%s' will bind to `%s'\n", 1033 "Service `%s' will bind to `%s'\n",