gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14269 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r14269 - gnunet/src/util
Date: Wed, 26 Jan 2011 11:31:48 +0100

Author: nevans
Date: 2011-01-26 11:31:48 +0100 (Wed, 26 Jan 2011)
New Revision: 14269

Modified:
   gnunet/src/util/client.c
Log:
hack so that configuration can force non-unixpath connections

Modified: gnunet/src/util/client.c
===================================================================
--- gnunet/src/util/client.c    2011-01-26 10:06:46 UTC (rev 14268)
+++ gnunet/src/util/client.c    2011-01-26 10:31:48 UTC (rev 14269)
@@ -276,10 +276,11 @@
   if (0 == (attempt % 2))
     {
       /* on even rounds, try UNIX */
-      if (GNUNET_OK ==
+      if ((GNUNET_OK ==
          GNUNET_CONFIGURATION_get_value_string (cfg,
                                                 service_name,
-                                                "UNIXPATH", &unixpath))
+                                                "UNIXPATH", &unixpath)) &&
+          (0 < strlen (unixpath)))
        {
          sock = GNUNET_CONNECTION_create_from_connect_to_unixpath (cfg,
                                                                    unixpath);
@@ -321,10 +322,11 @@
       if (0 != (attempt % 2))
        {
          /* try UNIX */
-         if (GNUNET_OK ==
+         if ((GNUNET_OK ==
              GNUNET_CONFIGURATION_get_value_string (cfg,
                                                     service_name,
-                                                    "UNIXPATH", &unixpath))
+                                                    "UNIXPATH", &unixpath)) &&
+              (0 < strlen (unixpath)))
            {
              sock = GNUNET_CONNECTION_create_from_connect_to_unixpath (cfg,
                                                                        
unixpath);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]