From: Matthias Wachs Date: Wed, 4 Sep 2013 09:48:46 +0000 (+0000) Subject: fix: wrong check X-Git-Tag: initial-import-from-subversion-38251~7547 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6b344acdd6c268f63630d7802ffbb49d557eea05;p=oweals%2Fgnunet.git fix: wrong check --- diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index bcb8e53ae..67a00dc40 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c @@ -2124,14 +2124,15 @@ server_start (struct HTTP_Server_Plugin *plugin) } msg = "No"; - if ((plugin->server_v6 == NULL) && (plugin->server_v6 == NULL)) + if ((plugin->server_v6 == NULL) && (plugin->server_v4 == NULL)) { GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name, "%s %s server component started on port %u\n", msg, plugin->name, plugin->port); + sleep (10); return GNUNET_SYSERR; } - else if ((plugin->server_v6 != NULL) && (plugin->server_v6 != NULL)) + else if ((plugin->server_v6 != NULL) && (plugin->server_v4 != NULL)) msg = "IPv4 and IPv6"; else if (plugin->server_v6 != NULL) msg = "IPv6"; @@ -2140,7 +2141,7 @@ server_start (struct HTTP_Server_Plugin *plugin) GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, "%s %s server component started on port %u\n", msg, plugin->name, plugin->port); - + sleep (10); return GNUNET_OK; }