commit cbbf43ba7d57ce2d9558530b8b8cca340efbf9c8
parent 35a08c0857f7ebd1d0c59073ef87dd72eef3ad5f
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 4 Aug 2026 14:01:33 +0200
-remove useles MHD option, clean up lsock on failure
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/backend/paivana-httpd_daemon.c b/src/backend/paivana-httpd_daemon.c
@@ -336,8 +336,7 @@ start_daemon (void *cls,
GNUNET_assert (-1 != lsock);
mhd = MHD_start_daemon (
MHD_USE_DEBUG
- | MHD_ALLOW_SUSPEND_RESUME
- | MHD_USE_DUAL_STACK,
+ | MHD_ALLOW_SUSPEND_RESUME,
0,
NULL, NULL,
&create_response, NULL,
@@ -352,6 +351,8 @@ start_daemon (void *cls,
{
GNUNET_break (0);
PH_global_ret = EXIT_FAILURE;
+ /* MHD did not take ownership of the socket; close it ourselves. */
+ GNUNET_break (0 == close (lsock));
GNUNET_SCHEDULER_shutdown ();
return;
}