From d3b09093c8ba2ea2029a52656045a53425aa2ddd Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Sat, 8 Jun 2024 14:21:13 +0200 Subject: [PATCH] GENERATED: check the state before using the options --- src/mhd2/daemon_set_options.c | 3 +++ src/mhd2/response_set_options.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/mhd2/daemon_set_options.c b/src/mhd2/daemon_set_options.c index 356db9e7..f0641656 100644 --- a/src/mhd2/daemon_set_options.c +++ b/src/mhd2/daemon_set_options.c @@ -24,6 +24,9 @@ MHD_daemon_set_options (struct MHD_Daemon *daemon, { size_t i; + if (mhd_DAEMON_STATE_NOT_STARTED != daemon->state) + return MHD_SC_TOO_LATE; + for (i=0;ifrozen) + return MHD_SC_TOO_LATE; + for (i=0;i