]> granicus.if.org Git - apache/commitdiff
belt and suspenders
authorJim Jagielski <jim@apache.org>
Wed, 9 Jan 2008 16:51:49 +0000 (16:51 +0000)
committerJim Jagielski <jim@apache.org>
Wed, 9 Jan 2008 16:51:49 +0000 (16:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@610451 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_filters.c

index f66650da6e061f93e1af1e50c9646880e01788e3..d3fa5f1c0ca9075467dc2c1b8891456613346485 100644 (file)
@@ -148,7 +148,7 @@ static apr_status_t get_remaining_chunk_line(http_ctx_t *ctx,
         /* If we got a zero-length data bucket, we try the next one */
     }
     /* We had no data in this brigade */
-    if (e == APR_BRIGADE_SENTINEL(b)) {
+    if (!len || e == APR_BRIGADE_SENTINEL(b)) {
         return APR_EAGAIN;
     }
     if (lineend[len - 1] != APR_ASCII_LF) {