aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_address_lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport_api_address_lookup.c')
-rw-r--r--src/transport/transport_api_address_lookup.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/transport/transport_api_address_lookup.c b/src/transport/transport_api_address_lookup.c
index a760f4775..968a4324f 100644
--- a/src/transport/transport_api_address_lookup.c
+++ b/src/transport/transport_api_address_lookup.c
@@ -140,8 +140,8 @@ GNUNET_TRANSPORT_address_lookup (const struct GNUNET_CONFIGURATION_Handle *cfg,
140 return NULL; 140 return NULL;
141 } 141 }
142 client = GNUNET_CLIENT_connect ("transport", cfg); 142 client = GNUNET_CLIENT_connect ("transport", cfg);
143 if (client == NULL) 143 if (client == NULL)
144 return NULL; 144 return NULL;
145 msg = GNUNET_malloc (len); 145 msg = GNUNET_malloc (len);
146 msg->header.size = htons (len); 146 msg->header.size = htons (len);
147 msg->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP); 147 msg->header.type = htons (GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP);
@@ -172,7 +172,9 @@ GNUNET_TRANSPORT_address_lookup (const struct GNUNET_CONFIGURATION_Handle *cfg,
172 * @param alc handle for the request to cancel 172 * @param alc handle for the request to cancel
173 */ 173 */
174void 174void
175GNUNET_TRANSPORT_address_lookup_cancel (struct GNUNET_TRANSPORT_AddressLookupContext *alc) 175GNUNET_TRANSPORT_address_lookup_cancel (struct
176 GNUNET_TRANSPORT_AddressLookupContext
177 *alc)
176{ 178{
177 GNUNET_CLIENT_disconnect (alc->client, GNUNET_NO); 179 GNUNET_CLIENT_disconnect (alc->client, GNUNET_NO);
178 GNUNET_free (alc); 180 GNUNET_free (alc);