gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r28381 - gnunet/src/transport
Date: Fri, 2 Aug 2013 15:56:22 +0200

Author: wachs
Date: 2013-08-02 15:56:22 +0200 (Fri, 02 Aug 2013)
New Revision: 28381

Modified:
   gnunet/src/transport/plugin_transport_http_server.c
Log:
fix for crash on buildbots


Modified: gnunet/src/transport/plugin_transport_http_server.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_server.c 2013-08-02 12:40:32 UTC 
(rev 28380)
+++ gnunet/src/transport/plugin_transport_http_server.c 2013-08-02 13:56:22 UTC 
(rev 28381)
@@ -654,24 +654,23 @@
 http_server_plugin_address_suggested (void *cls, const void *addr,
                size_t addrlen)
 {
-  struct HTTP_Server_Plugin *plugin = cls;
   struct HttpAddressWrapper *next;
   struct HttpAddressWrapper *pos;
        struct HttpAddress *h_addr;
        h_addr = (struct HttpAddress *) addr;
 
-  if ((NULL != plugin->ext_addr) &&
+  if ((NULL != p->ext_addr) &&
           GNUNET_YES == (http_common_cmp_addresses (addr, addrlen,
-                                          plugin->ext_addr, 
plugin->ext_addr_len)))
+                                          p->ext_addr, p->ext_addr_len)))
   {
        /* Checking HTTP_OPTIONS_VERIFY_CERTIFICATE option for external 
hostname */
        if ((ntohl(h_addr->options) & HTTP_OPTIONS_VERIFY_CERTIFICATE) !=
-                       (plugin->options & HTTP_OPTIONS_VERIFY_CERTIFICATE))
+                       (p->options & HTTP_OPTIONS_VERIFY_CERTIFICATE))
                        return GNUNET_NO; /* VERIFY option not set as required! 
*/
        return GNUNET_OK;
   }
 
-  next  = plugin->addr_head;
+  next  = p->addr_head;
   while (NULL != (pos = next))
   {
     next = pos->next;




reply via email to

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