struct PendingMessage *pm;
endpoint->plugin->env->session_end (endpoint->plugin->env->cls,
- &session->target,
+ session->address,
session);
while (NULL != (pm = session->pending_message_head))
{
if (sizeof (struct WlanAddress) != addrlen)
{
/* invalid address */
- LOG (GNUNET_ERROR_TYPE_WARNING,
- _("Bluetooth address with invalid size encountered\n"));
- asc (asc_cls, NULL);
- return;
+ asc (asc_cls, NULL, GNUNET_SYSERR);
+ }
+ else
+ {
+ ret = GNUNET_strdup (bluetooth_plugin_address_to_string(NULL, addr, addrlen));
+ asc (asc_cls, ret, GNUNET_OK);
+ GNUNET_free (ret);
}
- ret = GNUNET_strdup (bluetooth_plugin_address_to_string(NULL, addr, addrlen));
- asc (asc_cls, ret);
- GNUNET_free (ret);
- asc (asc_cls, NULL);
+ asc (asc_cls, NULL, GNUNET_OK);
}