]> granicus.if.org Git - apache/commitdiff
* server/scoreboard.c: Check for child_num < 0 also in ap_update_child_status
authorJan Kaluža <jkaluza@apache.org>
Tue, 11 Nov 2014 12:06:53 +0000 (12:06 +0000)
committerJan Kaluža <jkaluza@apache.org>
Tue, 11 Nov 2014 12:06:53 +0000 (12:06 +0000)
and ap_update_child_status_from_conn. PR 56767.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1638073 13f79535-47bb-0310-9956-ffa450edef68

server/scoreboard.c

index c73db21398a832eb524828e48d96a51339949bbc..f6bbe820dd82c7786abd59cad9da6484c2d06911 100644 (file)
@@ -527,7 +527,7 @@ AP_DECLARE(int) ap_update_child_status_from_indexes(int child_num,
 AP_DECLARE(int) ap_update_child_status(ap_sb_handle_t *sbh, int status,
                                       request_rec *r)
 {
-    if (!sbh)
+    if (!sbh || (sbh->child_num < 0))
         return -1;
 
     return update_child_status_internal(sbh->child_num, sbh->thread_num,
@@ -539,7 +539,7 @@ AP_DECLARE(int) ap_update_child_status(ap_sb_handle_t *sbh, int status,
 AP_DECLARE(int) ap_update_child_status_from_conn(ap_sb_handle_t *sbh, int status,
                                        conn_rec *c)
 {
-    if (!sbh)
+    if (!sbh || (sbh->child_num < 0))
         return -1;
 
     return update_child_status_internal(sbh->child_num, sbh->thread_num,