]> granicus.if.org Git - php/commitdiff
Check the status properly
authorfoobar <sniper@php.net>
Fri, 2 Sep 2005 13:50:39 +0000 (13:50 +0000)
committerfoobar <sniper@php.net>
Fri, 2 Sep 2005 13:50:39 +0000 (13:50 +0000)
sapi/apache2handler/sapi_apache2.c

index c5734c0116d1adc9031a8fd2a9cab3e9c8662f2e..aadf4512261690274ed88930eb3b1e3ba8681e3f 100644 (file)
@@ -538,7 +538,7 @@ zend_first_try {
        } else {
                parent_req = ctx->r;
                /* check if comming due to ErrorDocument */
-               if (parent_req != HTTP_OK) {
+               if (parent_req && parent_req->status != HTTP_OK) {
                        parent_req = NULL;
                        goto normal;
                }