libmicrohttpd

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

commit a54fe75ecddd2dd7db9abe3cea2e31eb4b3ff9ca
parent 5cbdf771760d1e50147ee54b44b200218fa20ebe
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 21 Nov 2023 09:53:20 +0300

MHD_start_daemon(): reject INTERNAL_POLLING_THREAD if threads are disabled

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

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -7626,6 +7626,11 @@ MHD_start_daemon_va (unsigned int flags, return NULL; #endif /* ! UPGRADE_SUPPORT */ } +#ifndef MHD_USE_THREADS + if (0 != (*pflags & MHD_USE_INTERNAL_POLLING_THREAD)) + return NULL; +#endif /* ! MHD_USE_THREADS */ + if (NULL == dh) return NULL;