From 51ec5ca6da97ae43afb69f06e76dd15d8d08df49 Mon Sep 17 00:00:00 2001 From: foobar Date: Fri, 2 Sep 2005 13:50:39 +0000 Subject: [PATCH] Check the status properly --- sapi/apache2handler/sapi_apache2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index c5734c0116..aadf451226 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -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; } -- 2.50.1