52592b
diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c
52592b
index d218bab..9f86b09 100644
52592b
--- a/modules/filters/mod_deflate.c
52592b
+++ b/modules/filters/mod_deflate.c
52592b
@@ -864,7 +864,7 @@ static apr_status_t deflate_out_filter(ap_filter_t *f,
52592b
 
52592b
             if (c->note_output_name) {
52592b
                 apr_table_setn(r->notes, c->note_output_name,
52592b
-                               (ctx->stream.total_in > 0)
52592b
+                               (ctx->stream.total_out > 0)
52592b
                                 ? apr_off_t_toa(r->pool,
52592b
                                                 ctx->stream.total_out)
52592b
                                 : "-");
52592b
@@ -1336,8 +1336,6 @@ static apr_status_t deflate_in_filter(ap_filter_t *f,
52592b
             ctx->stream.next_in = (unsigned char *)data;
52592b
             ctx->stream.avail_in = (int)len;
52592b
 
52592b
-            zRC = Z_OK;
52592b
-
52592b
             if (!ctx->validation_buffer) {
52592b
                 while (ctx->stream.avail_in != 0) {
52592b
                     if (ctx->stream.avail_out == 0) {