]> granicus.if.org Git - apache/commitdiff
mod_deflate: when consuming zlibs flags, APR_INCOMPLETE implies no more bytes available.
authorYann Ylavic <ylavic@apache.org>
Sat, 1 Mar 2014 20:34:55 +0000 (20:34 +0000)
committerYann Ylavic <ylavic@apache.org>
Sat, 1 Mar 2014 20:34:55 +0000 (20:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1573224 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_deflate.c

index b8c982babefc2e24a0b94a7acb37a51b0ae6f80e..74d6dd1ab2ac46c7c00b3c358f3ec527f8ea9dbe 100644 (file)
@@ -1210,7 +1210,7 @@ static apr_status_t deflate_in_filter(ap_filter_t *f,
                 if (rv == APR_SUCCESS) {
                     ctx->zlib_flags = 0;
                 }
-                if (rv == APR_INCOMPLETE || !len) {
+                if (!len) {
                     continue;
                 }
             }
@@ -1614,7 +1614,7 @@ static apr_status_t inflate_out_filter(ap_filter_t *f,
             if (rv == APR_SUCCESS) {
                 ctx->zlib_flags = 0;
             }
-            if (rv == APR_INCOMPLETE || !len) {
+            if (!len) {
                 apr_bucket_delete(e);
                 continue;
             }