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);
}