diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-20 09:15:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-20 09:15:18 +0000 |
commit | 5b3c889e3795aff706409921b622228a43d04205 (patch) | |
tree | 18e4e7c9ceaabaa637433e8958d8ee2b7ff6f735 /src/util/service.c | |
parent | b70139ece58a5e8204990c5df406e99f948da460 (diff) | |
download | gnunet-5b3c889e3795aff706409921b622228a43d04205.tar.gz gnunet-5b3c889e3795aff706409921b622228a43d04205.zip |
avoid duplicate binds
Diffstat (limited to 'src/util/service.c')
-rw-r--r-- | src/util/service.c | 4 |
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", |