From 8c4d1f66573863a3bd6131b8912ff3a279fa002e Mon Sep 17 00:00:00 2001 From: foobar Date: Fri, 2 Sep 2005 13:51:47 +0000 Subject: MFH --- sapi/apache2handler/sapi_apache2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sapi/apache2handler/sapi_apache2.c') 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; } -- cgit v1.2.1