]> granicus.if.org Git - apache/commitdiff
Handle the ap_pass_brigade inside the SPLIT_BRIGADE... macro.
authorRyan Bloom <rbb@apache.org>
Fri, 3 Aug 2001 03:41:51 +0000 (03:41 +0000)
committerRyan Bloom <rbb@apache.org>
Fri, 3 Aug 2001 03:41:51 +0000 (03:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89902 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_include.h

index 6a92e0a57b3b9f2dfb49028cc07011387cf08b30..15a3b7b61e2adc6f56542900ade047823df6dcc7 100644 (file)
@@ -187,9 +187,13 @@ typedef struct include_filter_ctx {
 if ((APR_BRIGADE_EMPTY(cntxt->ssi_tag_brigade)) &&                \
     (cntxt->head_start_bucket != NULL)) {                         \
     apr_bucket_brigade *tag_plus;                                 \
+    int rv;                                                       \
                                                                   \
     tag_plus = apr_brigade_split(brgd, cntxt->head_start_bucket); \
-    ap_pass_brigade(next, brgd);                                  \
+    rv = ap_pass_brigade(next, brgd);                             \
+    if (rv != APR_SUCCESS) {                                      \
+        return rv;                                                \
+    }                                                             \
     cntxt->bytes_parsed = 0;                                      \
     brgd = tag_plus;                                              \
 }