From: foobar Date: Fri, 2 Sep 2005 13:52:55 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.4.1RC1~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac4886ddffaef24ea7b8ef67972d785ec1e4c875;p=php MFH --- diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index 6fd3dae561..78d4fdfa9b 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -538,7 +538,7 @@ normal: } 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; }