]> granicus.if.org Git - apache/commitdiff
ap_content_length_filter(): if ap_save_brigade() fails, tell the caller
authorJeff Trawick <trawick@apache.org>
Fri, 29 Dec 2000 13:59:19 +0000 (13:59 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 29 Dec 2000 13:59:19 +0000 (13:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87549 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index d95521abf2ce3dc952e841822a8e462ed8e104ed..e31edd11b0bc96dfaf211c5ae27872c8fe2f8561 100644 (file)
@@ -2336,8 +2336,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_content_length_filter(ap_filter_t *f,
     }
 
     if ((ctx->curr_len < AP_MIN_BYTES_TO_WRITE) && !send_it) {
-        ap_save_brigade(f, &ctx->saved, &b);
-        return APR_SUCCESS;
+        return ap_save_brigade(f, &ctx->saved, &b);
     }
 
     /* We will compute a content length if: