summaryrefslogtreecommitdiff
path: root/modules/filters
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2018-10-05 10:43:46 +0000
committerJoe Orton <jorton@apache.org>2018-10-05 10:43:46 +0000
commit38e12a1238fbafb180bc174f9f908c6e12c18760 (patch)
tree2f7e409f465d745e87a45c940738b49e27c8b2f5 /modules/filters
parent53e64f05852efe69cb9e39dc0ea16bce46451288 (diff)
downloadhttpd-38e12a1238fbafb180bc174f9f908c6e12c18760.tar.gz
* modules/filters/mod_deflate.c
(deflate_out_filter): Fix typo setting output note. (Coverity warning) (deflate_in_filter): Fix redundant assignment. (clang warning) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1842888 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/filters')
-rw-r--r--modules/filters/mod_deflate.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c
index ab586d27c9..6bf3a842d3 100644
--- a/modules/filters/mod_deflate.c
+++ b/modules/filters/mod_deflate.c
@@ -905,7 +905,7 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
if (c->note_output_name) {
apr_table_setn(r->notes, c->note_output_name,
- (ctx->stream.total_in > 0)
+ (ctx->stream.total_out > 0)
? apr_off_t_toa(r->pool,
ctx->stream.total_out)
: "-");
@@ -1366,8 +1366,6 @@ static apr_status_t deflate_in_filter(ap_filter_t *f,
ctx->stream.next_in = (unsigned char *)data;
ctx->stream.avail_in = (int)len;
- zRC = Z_OK;
-
if (!ctx->validation_buffer) {
while (ctx->stream.avail_in != 0) {
if (ctx->stream.avail_out == 0) {