diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-07-14 09:16:58 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-07-14 09:16:58 +0000 |
commit | 2eeb8a2ae3d491a03e2a2d8b5aab4a42882dd4e0 (patch) | |
tree | 1e616b35fa7bd078695c2b17a8a17be07f6dfbd4 /src/transport/plugin_transport_tcp.c | |
parent | 6e079c87aff0e8e705f5530a0ca71c831b9a93b2 (diff) | |
download | gnunet-2eeb8a2ae3d491a03e2a2d8b5aab4a42882dd4e0.tar.gz gnunet-2eeb8a2ae3d491a03e2a2d8b5aab4a42882dd4e0.zip |
remove reverse dns timeout code
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 19 |
1 files 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 | |||
@@ -1294,16 +1294,6 @@ struct PrettyPrinterContext | |||
1294 | void *asc_cls; | 1294 | void *asc_cls; |
1295 | 1295 | ||
1296 | /** | 1296 | /** |
1297 | * The address | ||
1298 | */ | ||
1299 | void * addr; | ||
1300 | |||
1301 | /** | ||
1302 | * address length | ||
1303 | */ | ||
1304 | size_t addr_len; | ||
1305 | |||
1306 | /** | ||
1307 | * Port to add after the IP address. | 1297 | * Port to add after the IP address. |
1308 | */ | 1298 | */ |
1309 | uint16_t port; | 1299 | uint16_t port; |
@@ -1324,9 +1314,7 @@ append_port (void *cls, const char *hostname) | |||
1324 | 1314 | ||
1325 | if (hostname == NULL) | 1315 | if (hostname == NULL) |
1326 | { | 1316 | { |
1327 | ret = strdup(tcp_address_to_string(NULL, ppc->addr, ppc->addr_len)); | 1317 | ppc->asc (ppc->asc_cls, NULL); |
1328 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Error in name resolution: `%s'\n",ret); | ||
1329 | ppc->asc (ppc->asc_cls, ret); | ||
1330 | GNUNET_free (ppc); | 1318 | GNUNET_free (ppc); |
1331 | return; | 1319 | return; |
1332 | } | 1320 | } |
@@ -1400,13 +1388,10 @@ tcp_plugin_address_pretty_printer (void *cls, | |||
1400 | asc (asc_cls, NULL); | 1388 | asc (asc_cls, NULL); |
1401 | return; | 1389 | return; |
1402 | } | 1390 | } |
1403 | ppc = GNUNET_malloc (sizeof (struct PrettyPrinterContext) + addrlen); | 1391 | ppc = GNUNET_malloc (sizeof (struct PrettyPrinterContext)); |
1404 | ppc->asc = asc; | 1392 | ppc->asc = asc; |
1405 | ppc->asc_cls = asc_cls; | 1393 | ppc->asc_cls = asc_cls; |
1406 | ppc->port = port; | 1394 | ppc->port = port; |
1407 | ppc->addr = &ppc[1]; | ||
1408 | ppc->addr_len = addrlen; | ||
1409 | memcpy(ppc->addr, addr, addrlen); | ||
1410 | GNUNET_RESOLVER_hostname_get (sb, | 1395 | GNUNET_RESOLVER_hostname_get (sb, |
1411 | sbs, | 1396 | sbs, |
1412 | !numeric, timeout, &append_port, ppc); | 1397 | !numeric, timeout, &append_port, ppc); |