From c13877cb86a9e90886598c9bdc326007f7add6a6 Mon Sep 17 00:00:00 2001 From: Nick Kew Date: Tue, 7 Aug 2007 13:01:53 +0000 Subject: [PATCH] PR 42572: crash in Windows MPM Davi Arnauts simple patch confirmed as working. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@563487 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/winnt/child.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/mpm/winnt/child.c b/server/mpm/winnt/child.c index 6b15d6de4c..86d12babc0 100644 --- a/server/mpm/winnt/child.c +++ b/server/mpm/winnt/child.c @@ -1184,7 +1184,9 @@ void child_main(apr_pool_t *pconf) TerminateThread(child_handles[i], 1); CloseHandle(child_handles[i]); /* Reset the scoreboard entry for the thread we just whacked */ - score_idx = apr_hash_get(ht, &child_handles[i], sizeof(HANDLE)); + if (score_idx) { + score_idx = apr_hash_get(ht, &child_handles[i], sizeof(HANDLE)); + } ap_update_child_status_from_indexes(0, *score_idx, SERVER_DEAD, NULL); } ap_log_error(APLOG_MARK, APLOG_NOTICE, APR_SUCCESS, ap_server_conf, -- 2.40.0