aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-11 21:43:28 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-11 21:43:34 +0200
commit90ff9edfa9c5fcfa3a36d1653ff105e89b888e21 (patch)
tree780a2071f5072c8e8e044db741eb295c3f3ea2a7 /src/hostlist
parent3bcfe59f1ce533246bda271f00b3ee957cae304d (diff)
downloadgnunet-90ff9edfa9c5fcfa3a36d1653ff105e89b888e21.tar.gz
gnunet-90ff9edfa9c5fcfa3a36d1653ff105e89b888e21.zip
fixing #6149
Diffstat (limited to 'src/hostlist')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist_server.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist_server.c b/src/hostlist/gnunet-daemon-hostlist_server.c
index b2b7dac72..999730e3e 100644
--- a/src/hostlist/gnunet-daemon-hostlist_server.c
+++ b/src/hostlist/gnunet-daemon-hostlist_server.c
@@ -32,6 +32,7 @@
32#include "gnunet_peerinfo_service.h" 32#include "gnunet_peerinfo_service.h"
33#include "gnunet-daemon-hostlist.h" 33#include "gnunet-daemon-hostlist.h"
34#include "gnunet_resolver_service.h" 34#include "gnunet_resolver_service.h"
35#include "gnunet_mhd_compat.h"
35 36
36 37
37/** 38/**
@@ -294,7 +295,7 @@ host_processor (void *cls,
294 * @param addrlen length of @a addr 295 * @param addrlen length of @a addr
295 * @return #MHD_YES if connection is allowed, #MHD_NO if not (we are not ready) 296 * @return #MHD_YES if connection is allowed, #MHD_NO if not (we are not ready)
296 */ 297 */
297static int 298static MHD_RESULT
298accept_policy_callback (void *cls, 299accept_policy_callback (void *cls,
299 const struct sockaddr *addr, 300 const struct sockaddr *addr,
300 socklen_t addrlen) 301 socklen_t addrlen)
@@ -345,7 +346,7 @@ accept_policy_callback (void *cls,
345 * #MHD_NO if the socket must be closed due to a serios 346 * #MHD_NO if the socket must be closed due to a serios
346 * error while handling the request 347 * error while handling the request
347 */ 348 */
348static int 349static MHD_RESULT
349access_handler_callback (void *cls, 350access_handler_callback (void *cls,
350 struct MHD_Connection *connection, 351 struct MHD_Connection *connection,
351 const char *url, 352 const char *url,