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_wlan.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/transport/plugin_transport_wlan.c') diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 124594e90..f0197feb8 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c @@ -1725,15 +1725,15 @@ wlan_plugin_address_pretty_printer (void *cls, const char *type, if (sizeof (struct WlanAddress) != addrlen) { /* invalid address */ - LOG (GNUNET_ERROR_TYPE_WARNING, - _("WLAN address with invalid size encountered\n")); - asc (asc_cls, NULL); - return; + asc (asc_cls, NULL, GNUNET_SYSERR); + } + else + { + ret = GNUNET_strdup (wlan_plugin_address_to_string(NULL, addr, addrlen)); + asc (asc_cls, ret, GNUNET_OK); + GNUNET_free (ret); } - ret = GNUNET_strdup (wlan_plugin_address_to_string(NULL, addr, addrlen)); - asc (asc_cls, ret); - GNUNET_free (ret); - asc (asc_cls, NULL); + asc (asc_cls, NULL, GNUNET_OK); } -- cgit v1.2.3