aboutsummaryrefslogtreecommitdiff
path: root/src/util/service.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-05-25 10:19:31 +0000
committerChristian Grothoff <christian@grothoff.org>2011-05-25 10:19:31 +0000
commitacd5a863d4092349cea5ba19c1567d911ed93189 (patch)
treefd753a426aa7f0fe4db17d713ef62d6a15efa694 /src/util/service.c
parentf84694bdaec12d291af8739bfc2ec1b36e73918f (diff)
downloadgnunet-acd5a863d4092349cea5ba19c1567d911ed93189.tar.gz
gnunet-acd5a863d4092349cea5ba19c1567d911ed93189.zip
warn if this happens
Diffstat (limited to 'src/util/service.c')
-rw-r--r--src/util/service.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/service.c b/src/util/service.c
index 2338e795d..e88ac77c8 100644
--- a/src/util/service.c
+++ b/src/util/service.c
@@ -909,7 +909,9 @@ GNUNET_SERVICE_get_server_addresses (const char *serviceName,
909 if (strlen(unixpath) >= sizeof(s_un.sun_path)) 909 if (strlen(unixpath) >= sizeof(s_un.sun_path))
910 { 910 {
911 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 911 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
912 _("UNIXPATH `%s' too long, maximum length is %llu\n"),unixpath, sizeof(s_un.sun_path)); 912 _("UNIXPATH `%s' too long, maximum length is %llu\n"),
913 unixpath,
914 sizeof(s_un.sun_path));
913 GNUNET_free_non_null (hostname); 915 GNUNET_free_non_null (hostname);
914 GNUNET_free (unixpath); 916 GNUNET_free (unixpath);
915 return GNUNET_SYSERR; 917 return GNUNET_SYSERR;