From 800c3b54ba9a67ad995d6b5c1ecbffe224f4676d Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 2 Jun 2014 09:40:12 +0000 Subject: fix semantic for address_to_string --- src/transport/plugin_transport_http_common.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/transport/plugin_transport_http_common.c') diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c index 131624f16..f5712db58 100644 --- a/src/transport/plugin_transport_http_common.c +++ b/src/transport/plugin_transport_http_common.c @@ -208,17 +208,14 @@ http_common_plugin_address_pretty_printer (void *cls, { const struct HttpAddress *address = addr; - if (NULL == - http_common_plugin_address_to_string (NULL, type, - address, addrlen)) - { - asc (asc_cls, NULL); - return; - } - asc (asc_cls, http_common_plugin_address_to_string (NULL, - type, - address, addrlen)); - asc (asc_cls, NULL); + if (NULL + == http_common_plugin_address_to_string (NULL, type, address, addrlen)) + asc (asc_cls, NULL, GNUNET_SYSERR); + else + asc (asc_cls, + http_common_plugin_address_to_string (NULL, type, address, addrlen), + GNUNET_OK); + asc (asc_cls, NULL, GNUNET_OK); } -- cgit v1.2.3