diff options
author | Colin Watson <cjwatson@debian.org> | 2017-06-06 15:06:17 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2017-06-06 15:06:48 +0100 |
commit | 3c246c138b9f7fddcb726a8730f20ac7e588bfd0 (patch) | |
tree | 3262f7046a496eb527ca75eb189ab2754a48d8d7 /debian/patches | |
parent | ca52d27d024543377671e0bec449f74384284074 (diff) | |
parent | 6111c39a4ae8f1c62a9312a5f8d8b23adb5f727a (diff) |
Fix incoming compression statistics (thanks, Russell Coker; closes: #797964).
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/fix-incoming-compression-statistics.patch | 27 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/debian/patches/fix-incoming-compression-statistics.patch b/debian/patches/fix-incoming-compression-statistics.patch new file mode 100644 index 000000000..42ebef3fb --- /dev/null +++ b/debian/patches/fix-incoming-compression-statistics.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 6111c39a4ae8f1c62a9312a5f8d8b23adb5f727a Mon Sep 17 00:00:00 2001 | ||
2 | From: Russell Coker <russell@coker.com.au> | ||
3 | Date: Tue, 6 Jun 2017 15:00:20 +0100 | ||
4 | Subject: Fix incoming compression statistics | ||
5 | |||
6 | Bug-Debian: https://bugs.debian.org/797964 | ||
7 | Forwarded: https://lists.mindrot.org/pipermail/openssh-unix-dev/2017-June/036077.html | ||
8 | Last-Update: 2017-06-06 | ||
9 | |||
10 | Patch-Name: fix-incoming-compression-statistics.patch | ||
11 | --- | ||
12 | packet.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/packet.c b/packet.c | ||
16 | index 2f3a2ec7..6492b66f 100644 | ||
17 | --- a/packet.c | ||
18 | +++ b/packet.c | ||
19 | @@ -606,7 +606,7 @@ ssh_packet_close(struct ssh *ssh) | ||
20 | deflateEnd(stream); | ||
21 | } | ||
22 | if (state->compression_in_started) { | ||
23 | - z_streamp stream = &state->compression_out_stream; | ||
24 | + z_streamp stream = &state->compression_in_stream; | ||
25 | debug("compress incoming: " | ||
26 | "raw data %llu, compressed %llu, factor %.2f", | ||
27 | (unsigned long long)stream->total_out, | ||
diff --git a/debian/patches/series b/debian/patches/series index 981b5cf25..80ad5ec2b 100644 --- a/debian/patches/series +++ b/debian/patches/series | |||
@@ -29,3 +29,4 @@ no-dsa-host-key-by-default.patch | |||
29 | restore-authorized_keys2.patch | 29 | restore-authorized_keys2.patch |
30 | s390-missing-header.patch | 30 | s390-missing-header.patch |
31 | x32-syntax-error.patch | 31 | x32-syntax-error.patch |
32 | fix-incoming-compression-statistics.patch | ||