summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/plugin_transport_http_server.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c
index abc3bcbb0..3e5a8f24f 100644
--- a/src/transport/plugin_transport_http_server.c
+++ b/src/transport/plugin_transport_http_server.c
@@ -2256,9 +2256,11 @@ run_mhd_start_daemon (struct HTTP_Server_Plugin *plugin,
if ( (NULL != server) &&
(0 != (plugin->options & HTTP_OPTIONS_TCP_STEALTH)) )
{
- union MHD_DaemonInfo *di = MHD_get_daemon_info (server,
- MHD_DAEMON_INFO_LISTEN_FD,
- NULL);
+ const union MHD_DaemonInfo *di;
+
+ di = MHD_get_daemon_info (server,
+ MHD_DAEMON_INFO_LISTEN_FD,
+ NULL);
if ( (0 != setsockopt ((int) di->listen_fd,
IPPROTO_TCP,
SO_TCPSTEALTH,