aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/service.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/util/service.c b/src/util/service.c
index 767e8063d..792a802ef 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -895,8 +895,13 @@ GNUNET_SERVICE_get_server_addresses (const char *serviceName,
895 hostname = NULL; 895 hostname = NULL;
896 896
897#ifdef AF_UNIX 897#ifdef AF_UNIX
898 if (GNUNET_CONFIGURATION_have_value (cfg, 898 if ((GNUNET_YES == GNUNET_CONFIGURATION_have_value (cfg,
899 serviceName, "UNIXPATH")) 899 serviceName, "UNIXPATH")) &&
900 (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string (cfg,
901 serviceName,
902 "UNIXPATH",
903 &unixpath)) &&
904 (0 < strlen(unixpath)))
900 { 905 {
901 GNUNET_assert (GNUNET_OK == 906 GNUNET_assert (GNUNET_OK ==
902 GNUNET_CONFIGURATION_get_value_string (cfg, 907 GNUNET_CONFIGURATION_get_value_string (cfg,