commit 4da689fec4c42463816cc041d78d726ea0ae2d17
parent 46d56493968a98779f5ca3a1e63e498bace3678b
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sun, 16 Aug 2026 08:31:54 +0200
avoid socket leak
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mhd/mhd_spa.c b/src/mhd/mhd_spa.c
@@ -237,6 +237,8 @@ build_webui (void *cls,
fd /* FD now owned by MHD! */);
if (NULL == response)
{
+ /* MHD did not take ownership of the FD after all */
+ GNUNET_break (0 == close (fd));
GNUNET_free (fn);
return GNUNET_SYSERR;
}