From: Nick Kew Date: Tue, 7 Aug 2007 13:01:53 +0000 (+0000) Subject: PR 42572: crash in Windows MPM X-Git-Tag: 2.3.0~1628 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c13877cb86a9e90886598c9bdc326007f7add6a6;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/server/mpm/winnt/child.c b/server/mpm/winnt/child.c index 6b15d6de4cc..86d12babc0b 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,