alucb->cb (alucb->cb_cls,
NULL,
GNUNET_SYSERR);
- GNUNET_CLIENT_disconnect (alucb->client);
- GNUNET_free (alucb);
+ GNUNET_TRANSPORT_address_to_string_cancel (alucb);
return;
}
GNUNET_break (ntohs (msg->type) ==
alucb->cb (alucb->cb_cls,
NULL,
GNUNET_SYSERR);
- GNUNET_CLIENT_disconnect (alucb->client);
- GNUNET_free (alucb);
+ GNUNET_TRANSPORT_address_to_string_cancel (alucb);
return;
}
atsm = (const struct AddressToStringResultMessage *) msg;
alucb->cb (alucb->cb_cls,
NULL,
GNUNET_OK);
- GNUNET_CLIENT_disconnect (alucb->client);
- GNUNET_free (alucb);
+ GNUNET_TRANSPORT_address_to_string_cancel (alucb);
return;
}
address = (const char *) &atsm[1];
alucb->cb (alucb->cb_cls,
NULL,
GNUNET_SYSERR);
- GNUNET_CLIENT_disconnect (alucb->client);
- GNUNET_free (alucb);
+ GNUNET_TRANSPORT_address_to_string_cancel (alucb);
return;
}
/* expect more replies */