aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2011-01-26 10:31:48 +0000
committerNathan S. Evans <evans@in.tum.de>2011-01-26 10:31:48 +0000
commit68de77cea9e40330ba0825f9206d34acc47c12e0 (patch)
treef2a8d36df60a933c3008dbf4151662e8f4269d36 /src/util
parent57d6cf3c8765c511a80e8b873500d213cc884ac7 (diff)
downloadgnunet-68de77cea9e40330ba0825f9206d34acc47c12e0.tar.gz
gnunet-68de77cea9e40330ba0825f9206d34acc47c12e0.zip
hack so that configuration can force non-unixpath connections
Diffstat (limited to 'src/util')
-rw-r--r--src/util/client.c10
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);