]> granicus.if.org Git - apache/commitdiff
mod_xml2enc: follow up to r1829038.
authorYann Ylavic <ylavic@apache.org>
Fri, 13 Apr 2018 08:04:59 +0000 (08:04 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 13 Apr 2018 08:04:59 +0000 (08:04 +0000)
If any, pass pending meta bucket down the chain before leaving.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1829039 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_xml2enc.c

index ea7f0842e494f3fee5e2297165d34e0ecb2f236b..be07237d901f31fb2101ec637675b0507c73addd 100644 (file)
@@ -547,8 +547,18 @@ static apr_status_t xml2enc_ffunc(ap_filter_t* f, apr_bucket_brigade* bb)
                 return rv;
         }
     }
+    if (pending_meta) {
+        /* passing pending meta bucket down the chain before leaving */
+        rv = ap_pass_brigade(f->next, ctx->bbnext);
+        apr_brigade_cleanup(ctx->bbnext);
+        if (rv != APR_SUCCESS) {
+            return rv;
+        }
+    }
+
     return APR_SUCCESS;
 }
+
 static apr_status_t xml2enc_charset(request_rec* r, xmlCharEncoding* encp,
                                     const char** encoding)
 {