]> granicus.if.org Git - apache/commitdiff
core: we don't want to run the subrequest's handler if the
authorYann Ylavic <ylavic@apache.org>
Mon, 12 Oct 2015 10:56:12 +0000 (10:56 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 12 Oct 2015 10:56:12 +0000 (10:56 +0000)
quick-handler returned an error (or any final status).

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

server/request.c

index abf084e31aaceea9c071ff63c5e477cc47b41b30..1719597ad741e58b05fc69a613aa6c8f970f794b 100644 (file)
@@ -2517,7 +2517,7 @@ AP_DECLARE(int) ap_run_sub_req(request_rec *r)
     if (!(r->filename && r->finfo.filetype != APR_NOFILE)) {
         retval = ap_run_quick_handler(r, 0);
     }
-    if (retval != OK) {
+    if (retval == DECLINED) {
         retval = ap_invoke_handler(r);
         if (retval == DONE) {
             retval = OK;