]> granicus.if.org Git - apache/commitdiff
If we are in the middle of a brigade loop, we don't want to always check
authorRyan Bloom <rbb@apache.org>
Tue, 6 Feb 2001 04:13:45 +0000 (04:13 +0000)
committerRyan Bloom <rbb@apache.org>
Tue, 6 Feb 2001 04:13:45 +0000 (04:13 +0000)
the first bucket in the brigade.

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

modules/http/http_protocol.c

index 5206e67ddcb09b7197084a276c8ed4bf808c057e..9cfdb56fae9ff77ffe94d563f516d56842569f62 100644 (file)
@@ -2483,7 +2483,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_http_header_filter(ap_filter_t *f, apr_b
     }
 
     APR_BRIGADE_FOREACH(e, b) {
-        if (APR_BRIGADE_FIRST(b)->type == &ap_bucket_type_error) {
+        if (e->type == &ap_bucket_type_error) {
             ap_bucket_error *eb = e->data;
 
             ap_die(eb->status, r);