]> granicus.if.org Git - apache/commitdiff
Fixed the logic for detecting sentinel or EOS in send_parsed_content
authorBrian Pane <brianp@apache.org>
Sat, 15 Dec 2001 03:53:59 +0000 (03:53 +0000)
committerBrian Pane <brianp@apache.org>
Sat, 15 Dec 2001 03:53:59 +0000 (03:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92489 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.c

index 6d65bb7e989249d0ab6800cf1d57e151f66c4f63..5867437390a0d09b4878360a8494deab45533d4e 100644 (file)
@@ -2700,7 +2700,7 @@ static apr_status_t send_parsed_content(apr_bucket_brigade **bb,
                   ap_escape_shell_cmd(r->pool, arg_copy));
     }
 
-    while (dptr != APR_BRIGADE_SENTINEL(*bb) || !APR_BUCKET_IS_EOS(dptr)) {
+    while (dptr != APR_BRIGADE_SENTINEL(*bb) && !APR_BUCKET_IS_EOS(dptr)) {
         /* State to check for the STARTING_SEQUENCE. */
         if ((ctx->state == PRE_HEAD) || (ctx->state == PARSE_HEAD)) {
             int do_cleanup = 0;