From f1252a5b29869c7641c348514fe16d913b2d26ea Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 22 Nov 2010 09:20:22 +0000 Subject: [PATCH] Returns now GNUNET_SYSERR --- src/util/service.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/service.c b/src/util/service.c index 79b21e065..25a9b08dc 100644 --- a/src/util/service.c +++ b/src/util/service.c @@ -872,8 +872,10 @@ GNUNET_SERVICE_get_server_addresses (const char *serviceName, { GNUNET_log (GNUNET_ERROR_TYPE_WARNING, _("UNIXPATH `%s' too long, maximum length is %llu\n"),unixpath, sizeof(s_un.sun_path)); + GNUNET_free_non_null (hostname); + GNUNET_free (unixpath); + return GNUNET_SYSERR; } - /* FIXME: Perhaps add an assertion or a break??? */ desc = GNUNET_NETWORK_socket_create (AF_UNIX, SOCK_STREAM, 0); if (NULL == desc) -- 2.25.1