diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2017-06-06 09:12:17 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2017-06-07 11:31:15 +1000 |
commit | 550c053168123fcc0791f9952abad684704b5760 (patch) | |
tree | 83192754238de7f5678470875e670d5b76ade03f /packet.c | |
parent | 55d06c6e72a9abf1c06a7ac2749ba733134a1f39 (diff) |
upstream commit
Fix compression output stats broken in rev 1.201. Patch
originally by Russell Coker via Debian bug #797964 and Christoph Biedl. ok
djm@
Upstream-ID: 83a1903b95ec2e4ed100703debb4b4a313b01016
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.c,v 1.259 2017/06/01 06:16:43 djm Exp $ */ | 1 | /* $OpenBSD: packet.c,v 1.260 2017/06/06 09:12:17 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -600,7 +600,7 @@ ssh_packet_close_internal(struct ssh *ssh, int do_close) | |||
600 | deflateEnd(stream); | 600 | deflateEnd(stream); |
601 | } | 601 | } |
602 | if (state->compression_in_started) { | 602 | if (state->compression_in_started) { |
603 | z_streamp stream = &state->compression_out_stream; | 603 | z_streamp stream = &state->compression_in_stream; |
604 | debug("compress incoming: " | 604 | debug("compress incoming: " |
605 | "raw data %llu, compressed %llu, factor %.2f", | 605 | "raw data %llu, compressed %llu, factor %.2f", |
606 | (unsigned long long)stream->total_out, | 606 | (unsigned long long)stream->total_out, |