From 2eeb8a2ae3d491a03e2a2d8b5aab4a42882dd4e0 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 14 Jul 2011 09:16:58 +0000 Subject: [PATCH] remove reverse dns timeout code --- src/transport/plugin_transport_tcp.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 2a5cfaa8d..168a2b344 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c @@ -1293,16 +1293,6 @@ struct PrettyPrinterContext */ void *asc_cls; - /** - * The address - */ - void * addr; - - /** - * address length - */ - size_t addr_len; - /** * Port to add after the IP address. */ @@ -1324,9 +1314,7 @@ append_port (void *cls, const char *hostname) if (hostname == NULL) { - ret = strdup(tcp_address_to_string(NULL, ppc->addr, ppc->addr_len)); - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Error in name resolution: `%s'\n",ret); - ppc->asc (ppc->asc_cls, ret); + ppc->asc (ppc->asc_cls, NULL); GNUNET_free (ppc); return; } @@ -1400,13 +1388,10 @@ tcp_plugin_address_pretty_printer (void *cls, asc (asc_cls, NULL); return; } - ppc = GNUNET_malloc (sizeof (struct PrettyPrinterContext) + addrlen); + ppc = GNUNET_malloc (sizeof (struct PrettyPrinterContext)); ppc->asc = asc; ppc->asc_cls = asc_cls; ppc->port = port; - ppc->addr = &ppc[1]; - ppc->addr_len = addrlen; - memcpy(ppc->addr, addr, addrlen); GNUNET_RESOLVER_hostname_get (sb, sbs, !numeric, timeout, &append_port, ppc); -- 2.25.1