From: Nathan S. Evans Date: Mon, 14 Feb 2011 13:39:53 +0000 (+0000) Subject: don't use totally empty unix path X-Git-Tag: initial-import-from-subversion-38251~19138 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e09d794f49679d52d2cddae55838629b0449d0fb;p=oweals%2Fgnunet.git don't use totally empty unix path --- 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, hostname = NULL; #ifdef AF_UNIX - if (GNUNET_CONFIGURATION_have_value (cfg, - serviceName, "UNIXPATH")) + if ((GNUNET_YES == GNUNET_CONFIGURATION_have_value (cfg, + serviceName, "UNIXPATH")) && + (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string (cfg, + serviceName, + "UNIXPATH", + &unixpath)) && + (0 < strlen(unixpath))) { GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string (cfg,