diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-02 13:56:22 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-02 13:56:22 +0000 |
commit | 04e071e4b0a1a749516e2d9226892a0a6485e3c6 (patch) | |
tree | 5cbdf4ae36d68afad1204433f7607ed9d8d6bb09 /src/transport/plugin_transport_http_server.c | |
parent | fd08f728df7a07c0c8dc5433e16e6dcc3e512dd7 (diff) | |
download | gnunet-04e071e4b0a1a749516e2d9226892a0a6485e3c6.tar.gz gnunet-04e071e4b0a1a749516e2d9226892a0a6485e3c6.zip |
fix for crash on buildbots
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 968ee23fa..19833521a 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c | |||
@@ -654,24 +654,23 @@ static int | |||
654 | http_server_plugin_address_suggested (void *cls, const void *addr, | 654 | http_server_plugin_address_suggested (void *cls, const void *addr, |
655 | size_t addrlen) | 655 | size_t addrlen) |
656 | { | 656 | { |
657 | struct HTTP_Server_Plugin *plugin = cls; | ||
658 | struct HttpAddressWrapper *next; | 657 | struct HttpAddressWrapper *next; |
659 | struct HttpAddressWrapper *pos; | 658 | struct HttpAddressWrapper *pos; |
660 | struct HttpAddress *h_addr; | 659 | struct HttpAddress *h_addr; |
661 | h_addr = (struct HttpAddress *) addr; | 660 | h_addr = (struct HttpAddress *) addr; |
662 | 661 | ||
663 | if ((NULL != plugin->ext_addr) && | 662 | if ((NULL != p->ext_addr) && |
664 | GNUNET_YES == (http_common_cmp_addresses (addr, addrlen, | 663 | GNUNET_YES == (http_common_cmp_addresses (addr, addrlen, |
665 | plugin->ext_addr, plugin->ext_addr_len))) | 664 | p->ext_addr, p->ext_addr_len))) |
666 | { | 665 | { |
667 | /* Checking HTTP_OPTIONS_VERIFY_CERTIFICATE option for external hostname */ | 666 | /* Checking HTTP_OPTIONS_VERIFY_CERTIFICATE option for external hostname */ |
668 | if ((ntohl(h_addr->options) & HTTP_OPTIONS_VERIFY_CERTIFICATE) != | 667 | if ((ntohl(h_addr->options) & HTTP_OPTIONS_VERIFY_CERTIFICATE) != |
669 | (plugin->options & HTTP_OPTIONS_VERIFY_CERTIFICATE)) | 668 | (p->options & HTTP_OPTIONS_VERIFY_CERTIFICATE)) |
670 | return GNUNET_NO; /* VERIFY option not set as required! */ | 669 | return GNUNET_NO; /* VERIFY option not set as required! */ |
671 | return GNUNET_OK; | 670 | return GNUNET_OK; |
672 | } | 671 | } |
673 | 672 | ||
674 | next = plugin->addr_head; | 673 | next = p->addr_head; |
675 | while (NULL != (pos = next)) | 674 | while (NULL != (pos = next)) |
676 | { | 675 | { |
677 | next = pos->next; | 676 | next = pos->next; |