]> granicus.if.org Git - apache/commitdiff
check the return value of ap_run_pre_connection(). So if the
authorStas Bekman <stas@apache.org>
Tue, 25 Feb 2003 23:25:19 +0000 (23:25 +0000)
committerStas Bekman <stas@apache.org>
Tue, 25 Feb 2003 23:25:19 +0000 (23:25 +0000)
pre_connection phase fails (without setting c->aborted)
ap_run_process_connection is not executed.
PR:
Obtained from:
Submitted by:
Reviewed by: trawick, jim

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

server/connection.c

index ac0e80fd9a90cfa215148e8a1b412aab314875a2..a7c1b3f21f6cef48bd7336dbea9c4b21415a2ed5 100644 (file)
@@ -199,10 +199,14 @@ AP_DECLARE(void) ap_lingering_close(conn_rec *c)
 
 AP_CORE_DECLARE(void) ap_process_connection(conn_rec *c, void *csd)
 {
+    apr_status_t rc;
     ap_update_vhost_given_ip(c);
 
-    ap_run_pre_connection(c, csd);
-
+    rc = ap_run_pre_connection(c, csd);
+    if (rc != OK && rc != DONE) {
+        c->aborted = 1;
+    }
+    
     if (!c->aborted) {
         ap_run_process_connection(c);
     }