aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_http_common.c')
-rw-r--r--src/transport/plugin_transport_http_common.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c
index f5712db58..02129f37d 100644
--- a/src/transport/plugin_transport_http_common.c
+++ b/src/transport/plugin_transport_http_common.c
@@ -207,18 +207,24 @@ http_common_plugin_address_pretty_printer (void *cls,
207 void *asc_cls) 207 void *asc_cls)
208{ 208{
209 const struct HttpAddress *address = addr; 209 const struct HttpAddress *address = addr;
210 210 const char *ret;
211 if (NULL 211
212 == http_common_plugin_address_to_string (NULL, type, address, addrlen)) 212 ret = http_common_plugin_address_to_string (NULL,
213 asc (asc_cls, NULL, GNUNET_SYSERR); 213 type,
214 else 214 address,
215 asc (asc_cls, 215 addrlen);
216 http_common_plugin_address_to_string (NULL, type, address, addrlen), 216 asc (asc_cls,
217 GNUNET_OK); 217 NULL,
218 asc (asc_cls, NULL, GNUNET_OK); 218 (NULL == ret) ? GNUNET_SYSERR : GNUNET_OK);
219 asc (asc_cls,
220 NULL,
221 GNUNET_OK);
219} 222}
220 223
221 224
225/**
226 * FIXME.
227 */
222const char * 228const char *
223http_common_plugin_address_to_url (void *cls, 229http_common_plugin_address_to_url (void *cls,
224 const void *addr, 230 const void *addr,