gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r15951 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r15951 - gnunet/src/transport
Date: Thu, 14 Jul 2011 11:16:58 +0200

Author: wachs
Date: 2011-07-14 11:16:58 +0200 (Thu, 14 Jul 2011)
New Revision: 15951

Modified:
   gnunet/src/transport/plugin_transport_tcp.c
Log:
remove reverse dns timeout code


Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2011-07-14 09:16:17 UTC (rev 
15950)
+++ gnunet/src/transport/plugin_transport_tcp.c 2011-07-14 09:16:58 UTC (rev 
15951)
@@ -1294,16 +1294,6 @@
   void *asc_cls;
 
   /**
-   * The address
-   */
-  void * addr;
-
-  /**
-   * address length
-   */
-  size_t addr_len;
-
-  /**
    * Port to add after the IP address.
    */
   uint16_t port;
@@ -1324,9 +1314,7 @@
 
   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 @@
       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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]