]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mpm_winnt: Fix null pointer dereference
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 15 Oct 2007 23:49:32 +0000 (23:49 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 15 Oct 2007 23:49:32 +0000 (23:49 +0000)
PR 42572

Backports: 563489

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@584975 13f79535-47bb-0310-9956-ffa450edef68

STATUS
server/mpm/winnt/child.c

diff --git a/STATUS b/STATUS
index 471f6848ecfb25eb9a871170b292e5dba5696829..381b96116983274d26dbc90dab03a9001044f86d 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -182,11 +182,6 @@ PATCHES PROPOSED TO BACKPORT FROM TRUNK:
      niq says: Yes, when we add r584842 to the proposal.
      rpluem says: Yes.
      
-   * mpm_winnt: Fix null pointer dereference
-     PR 42572
-     http://svn.apache.org/viewvc/httpd/httpd/trunk/server/mpm/winnt/child.c?r1=505027&r2=563489
-     +1: niq (this is clear enough to vote 'blind'), rpluem
-
    * mod_proxy_http: Don't mangle proxied URLs
      PR 42592
      http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_http.c?r1=582655&r2=583803&pathrev=583803
index 4fcad5c34a003a91ebc0a926c4d547fb09bc267a..d302253e4e870a3427daf0246d3058baa68211c8 100644 (file)
@@ -1187,7 +1187,10 @@ void child_main(apr_pool_t *pconf)
         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));
-        ap_update_child_status_from_indexes(0, *score_idx, SERVER_DEAD, NULL);
+        if (score_idx) {
+            ap_update_child_status_from_indexes(0, *score_idx,
+                                                SERVER_DEAD, NULL);
+        }
     }
     ap_log_error(APLOG_MARK,APLOG_NOTICE, APR_SUCCESS, ap_server_conf,
                  "Child %d: All worker threads have exited.", my_pid);