File: fix-incoming-compression-statistics.patch

package info (click to toggle)
openssh-ssh1 1%3A7.5p1-18
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,040 kB
  • sloc: ansic: 98,323; sh: 10,775; makefile: 1,065; awk: 341; perl: 53; csh: 1
file content (27 lines) | stat: -rw-r--r-- 938 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From a4134c267712cbd914332c257443e23a0532fdb0 Mon Sep 17 00:00:00 2001
From: Russell Coker <russell@coker.com.au>
Date: Tue, 6 Jun 2017 15:00:20 +0100
Subject: Fix incoming compression statistics

Bug-Debian: https://bugs.debian.org/797964
Forwarded: https://lists.mindrot.org/pipermail/openssh-unix-dev/2017-June/036077.html
Last-Update: 2017-06-06

Patch-Name: fix-incoming-compression-statistics.patch
---
 packet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packet.c b/packet.c
index 2f3a2ec70..6492b66f9 100644
--- a/packet.c
+++ b/packet.c
@@ -606,7 +606,7 @@ ssh_packet_close(struct ssh *ssh)
 				deflateEnd(stream);
 		}
 		if (state->compression_in_started) {
-			z_streamp stream = &state->compression_out_stream;
+			z_streamp stream = &state->compression_in_stream;
 			debug("compress incoming: "
 			    "raw data %llu, compressed %llu, factor %.2f",
 			    (unsigned long long)stream->total_out,