libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit a061caa22e732288ea21c109cb5de64ed28edf10
parent f53db2892e5af9841b0b19e6a5fea96fb2f8ebf8
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 27 Dec 2020 18:01:48 +0300

Fixed builds with --disable-https or --disable-httpupgrade

Diffstat:
Msrc/microhttpd/daemon.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -7099,6 +7099,7 @@ close_all_connections (struct MHD_Daemon *daemon) struct MHD_UpgradeResponseHandle *urh; struct MHD_UpgradeResponseHandle *urhn; const bool used_tls = (0 != (daemon->options & MHD_USE_TLS)); +#endif /* HTTPS_SUPPORT && UPGRADE_SUPPORT */ mhd_assert ( (0 == (daemon->options & MHD_USE_INTERNAL_POLLING_THREAD)) || \ (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) || \ @@ -7119,6 +7120,7 @@ close_all_connections (struct MHD_Daemon *daemon) pos); new_connection_close_ (daemon, pos); } +#if defined(HTTPS_SUPPORT) && defined(UPGRADE_SUPPORT) /* give upgraded HTTPS connections a chance to finish */ /* 'daemon->urh_head' is not used in thread-per-connection mode. */ for (urh = daemon->urh_tail; NULL != urh; urh = urhn)