]> granicus.if.org Git - apache/blobdiff - server/core_filters.c
fr doc rebuild.
[apache] / server / core_filters.c
index 751cb2581a1212fe2000031ce42ad11ed8563c9b..51a17a6be72f3d9202c170de6bfa5c54e1408f13 100644 (file)
@@ -436,8 +436,13 @@ apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *bb)
         ap_log_cerror(
                 APLOG_MARK, APLOG_TRACE1, rv, c,
                 "core_output_filter: writing data to the network");
-        apr_brigade_cleanup(bb);
+        /*
+         * Set c->aborted before apr_brigade_cleanup to have the correct status
+         * when logging the request as apr_brigade_cleanup triggers the logging
+         * of the request if it contains an EOR bucket.
+         */
         c->aborted = 1;
+        apr_brigade_cleanup(bb);
         return rv;
     }