From e3c9ecf80afce609d665de063da56ac25a3b60fd Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Thu, 12 Feb 2015 15:01:25 +0000 Subject: [PATCH] daemon.c: fix building without HTTPS support --- src/microhttpd/daemon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index ae9a984d..6b06c639 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c @@ -4076,9 +4076,12 @@ MHD_start_daemon_va (unsigned int flags, } } } +#if HTTPS_SUPPORT /* API promises to never use the password after initialization, so we additionally NULL it here to not deref a dangling pointer. */ daemon->https_key_password = NULL; +#endif /* HTTPS_SUPPORT */ + return daemon; thread_failed: