aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_address_to_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport_api_address_to_string.c')
-rw-r--r--src/transport/transport_api_address_to_string.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/transport/transport_api_address_to_string.c b/src/transport/transport_api_address_to_string.c
index a56616ea8..d881f9a08 100644
--- a/src/transport/transport_api_address_to_string.c
+++ b/src/transport/transport_api_address_to_string.c
@@ -55,12 +55,13 @@ struct GNUNET_TRANSPORT_AddressToStringContext
55/** 55/**
56 * Function called with responses from the service. 56 * Function called with responses from the service.
57 * 57 *
58 * @param cls our 'struct GNUNET_TRANSPORT_AddressToStringContext*' 58 * @param cls our `struct GNUNET_TRANSPORT_AddressToStringContext *`
59 * @param msg NULL on timeout or error, otherwise presumably a 59 * @param msg NULL on timeout or error, otherwise presumably a
60 * message with the human-readable address 60 * message with the human-readable address
61 */ 61 */
62static void 62static void
63address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg) 63address_response_processor (void *cls,
64 const struct GNUNET_MessageHeader *msg)
64{ 65{
65 struct GNUNET_TRANSPORT_AddressToStringContext *alucb = cls; 66 struct GNUNET_TRANSPORT_AddressToStringContext *alucb = cls;
66 struct AddressToStringResultMessage *atsm; 67 struct AddressToStringResultMessage *atsm;
@@ -70,9 +71,11 @@ address_response_processor (void *cls, const struct GNUNET_MessageHeader *msg)
70 uint32_t addr_len; 71 uint32_t addr_len;
71 char *empty_str = ""; 72 char *empty_str = "";
72 73
73 if (msg == NULL) 74 if (NULL == msg)
74 { 75 {
75 alucb->cb (alucb->cb_cls, NULL, GNUNET_OK); 76 alucb->cb (alucb->cb_cls,
77 NULL,
78 GNUNET_OK);
76 GNUNET_CLIENT_disconnect (alucb->client); 79 GNUNET_CLIENT_disconnect (alucb->client);
77 GNUNET_free (alucb); 80 GNUNET_free (alucb);
78 return; 81 return;