diff options
-rw-r--r-- | src/util/client.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/util/client.c b/src/util/client.c index ed554d96c..257a69b5a 100644 --- a/src/util/client.c +++ b/src/util/client.c | |||
@@ -276,10 +276,11 @@ do_connect (const char *service_name, | |||
276 | if (0 == (attempt % 2)) | 276 | if (0 == (attempt % 2)) |
277 | { | 277 | { |
278 | /* on even rounds, try UNIX */ | 278 | /* on even rounds, try UNIX */ |
279 | if (GNUNET_OK == | 279 | if ((GNUNET_OK == |
280 | GNUNET_CONFIGURATION_get_value_string (cfg, | 280 | GNUNET_CONFIGURATION_get_value_string (cfg, |
281 | service_name, | 281 | service_name, |
282 | "UNIXPATH", &unixpath)) | 282 | "UNIXPATH", &unixpath)) && |
283 | (0 < strlen (unixpath))) | ||
283 | { | 284 | { |
284 | sock = GNUNET_CONNECTION_create_from_connect_to_unixpath (cfg, | 285 | sock = GNUNET_CONNECTION_create_from_connect_to_unixpath (cfg, |
285 | unixpath); | 286 | unixpath); |
@@ -321,10 +322,11 @@ do_connect (const char *service_name, | |||
321 | if (0 != (attempt % 2)) | 322 | if (0 != (attempt % 2)) |
322 | { | 323 | { |
323 | /* try UNIX */ | 324 | /* try UNIX */ |
324 | if (GNUNET_OK == | 325 | if ((GNUNET_OK == |
325 | GNUNET_CONFIGURATION_get_value_string (cfg, | 326 | GNUNET_CONFIGURATION_get_value_string (cfg, |
326 | service_name, | 327 | service_name, |
327 | "UNIXPATH", &unixpath)) | 328 | "UNIXPATH", &unixpath)) && |
329 | (0 < strlen (unixpath))) | ||
328 | { | 330 | { |
329 | sock = GNUNET_CONNECTION_create_from_connect_to_unixpath (cfg, | 331 | sock = GNUNET_CONNECTION_create_from_connect_to_unixpath (cfg, |
330 | unixpath); | 332 | unixpath); |