/*
This file is part of GNUnet.
- (C) 2009-2014 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2009-2014 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
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 */