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