diff options
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..f503baa07 --- /dev/null +++ b/debian/patches/fix-incoming-compression-statistics.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From a93e5207256eff3a51db335c5a12b3ad2291f686 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 ad1f6b49..afcde6f3 100644 | ||
17 | --- a/packet.c | ||
18 | +++ b/packet.c | ||
19 | @@ -587,7 +587,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 c5fc81486..7537fc157 100644 --- a/debian/patches/series +++ b/debian/patches/series | |||
@@ -34,3 +34,4 @@ ssh-keygen-hash-corruption.patch | |||
34 | ssh-keyscan-hash-port.patch | 34 | ssh-keyscan-hash-port.patch |
35 | ssh-keygen-null-deref.patch | 35 | ssh-keygen-null-deref.patch |
36 | unbreak-unix-forwarding-for-root.patch | 36 | unbreak-unix-forwarding-for-root.patch |
37 | fix-incoming-compression-statistics.patch | ||