nghttpx: Fix heap-use-after-free

Fix heap-use-after-free introduced by
ddb667e8bf.
This commit is contained in:
Tatsuhiro Tsujikawa 2023-03-11 11:48:42 +09:00
parent b8cb6efb37
commit bc6814eb5b

View File

@ -1891,7 +1891,8 @@ int event_loop() {
shutdown_worker_process_ready_ipc_watcher(loop);
if (!config->single_process) {
// config is now stale if reload has happened.
if (!get_config()->single_process) {
shutdown_signal_watchers(loop);
}