diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-06-20 18:45:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-06-20 18:45:30 +0000 |
commit | adf27a6356d67c4bef76f3560aa4abce5f71528f (patch) | |
tree | 8252c4e9d314d721ebe76f8b9a1655de00ddedb3 /src/util/service.c | |
parent | 8d9db9ddae163bc412ccfe301ea3d95298bb787f (diff) | |
download | gnunet-adf27a6356d67c4bef76f3560aa4abce5f71528f.tar.gz gnunet-adf27a6356d67c4bef76f3560aa4abce5f71528f.zip |
-fixing #2439
Diffstat (limited to 'src/util/service.c')
-rw-r--r-- | src/util/service.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/service.c b/src/util/service.c index 2e75125ce..c9bbee3c8 100644 --- a/src/util/service.c +++ b/src/util/service.c | |||
@@ -973,12 +973,12 @@ GNUNET_SERVICE_get_server_addresses (const char *service_name, | |||
973 | { | 973 | { |
974 | LOG (GNUNET_ERROR_TYPE_WARNING, | 974 | LOG (GNUNET_ERROR_TYPE_WARNING, |
975 | _("UNIXPATH `%s' too long, maximum length is %llu\n"), unixpath, | 975 | _("UNIXPATH `%s' too long, maximum length is %llu\n"), unixpath, |
976 | sizeof (s_un.sun_path)); | 976 | (unsigned long long) sizeof (s_un.sun_path)); |
977 | GNUNET_free_non_null (hostname); | 977 | unixpath = GNUNET_NETWORK_shorten_unixpath (unixpath); |
978 | GNUNET_free (unixpath); | ||
979 | return GNUNET_SYSERR; | ||
980 | } | 978 | } |
981 | 979 | } | |
980 | if (NULL != unixpath) | ||
981 | { | ||
982 | desc = GNUNET_NETWORK_socket_create (AF_UNIX, SOCK_STREAM, 0); | 982 | desc = GNUNET_NETWORK_socket_create (AF_UNIX, SOCK_STREAM, 0); |
983 | if (NULL == desc) | 983 | if (NULL == desc) |
984 | { | 984 | { |