aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_http_server.c')
-rw-r--r--src/transport/plugin_transport_http_server.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index f0ea5263f..bed2de34f 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -788,8 +788,8 @@ destroy_session_shutdown_cb (void *cls,
788 sc_recv = s->server_recv; 788 sc_recv = s->server_recv;
789 server_delete_session (s); 789 server_delete_session (s);
790 790
791 GNUNET_free (sc_send); 791 GNUNET_free_non_null (sc_send);
792 GNUNET_free (sc_recv); 792 GNUNET_free_non_null (sc_recv);
793 793
794 return GNUNET_OK; 794 return GNUNET_OK;
795} 795}
@@ -2249,7 +2249,7 @@ server_start (struct HTTP_Server_Plugin *plugin)
2249 MHD_OPTION_NOTIFY_COMPLETED, 2249 MHD_OPTION_NOTIFY_COMPLETED,
2250 &server_disconnect_cb, plugin, 2250 &server_disconnect_cb, plugin,
2251 MHD_OPTION_EXTERNAL_LOGGER, 2251 MHD_OPTION_EXTERNAL_LOGGER,
2252 server_log, NULL, MHD_OPTION_END); 2252 &server_log, NULL, MHD_OPTION_END);
2253 if (plugin->server_v4 == NULL) 2253 if (plugin->server_v4 == NULL)
2254 { 2254 {
2255 LOG (GNUNET_ERROR_TYPE_ERROR, 2255 LOG (GNUNET_ERROR_TYPE_ERROR,
@@ -2273,7 +2273,8 @@ server_start (struct HTTP_Server_Plugin *plugin)
2273#if BUILD_HTTPS 2273#if BUILD_HTTPS
2274 MHD_USE_SSL | 2274 MHD_USE_SSL |
2275#endif 2275#endif
2276 MHD_USE_IPv6, plugin->port, 2276 MHD_USE_SUSPEND_RESUME | MHD_USE_IPv6,
2277 plugin->port,
2277 &server_accept_cb, plugin, 2278 &server_accept_cb, plugin,
2278 &server_access_cb, plugin, 2279 &server_access_cb, plugin,
2279 MHD_OPTION_SOCK_ADDR, 2280 MHD_OPTION_SOCK_ADDR,
@@ -2298,7 +2299,7 @@ server_start (struct HTTP_Server_Plugin *plugin)
2298 MHD_OPTION_NOTIFY_COMPLETED, 2299 MHD_OPTION_NOTIFY_COMPLETED,
2299 &server_disconnect_cb, plugin, 2300 &server_disconnect_cb, plugin,
2300 MHD_OPTION_EXTERNAL_LOGGER, 2301 MHD_OPTION_EXTERNAL_LOGGER,
2301 server_log, NULL, MHD_OPTION_END); 2302 &server_log, NULL, MHD_OPTION_END);
2302 if (plugin->server_v6 == NULL) 2303 if (plugin->server_v6 == NULL)
2303 { 2304 {
2304 LOG (GNUNET_ERROR_TYPE_ERROR, 2305 LOG (GNUNET_ERROR_TYPE_ERROR,