summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2017-06-06 09:12:18 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2017-06-06 09:12:18 +0000
commit81d2af8d44842bb200a5beab3fa6d50c8476d204 (patch)
treee95b0289af0d094f66c7c1552ef58ab89bc4e370 /usr.bin
parent01c6f51d1e826e5c80903b018b1e56952b24a78c (diff)
Fix compression output stats broken in rev 1.201. Patch originally by
Russell Coker via Debian bug #797964 and Christoph Biedl. ok djm@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c
index c650d3966d7..ab25778bdae 100644
--- a/usr.bin/ssh/packet.c
+++ b/usr.bin/ssh/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.259 2017/06/01 06:16:43 djm Exp $ */
+/* $OpenBSD: packet.c,v 1.260 2017/06/06 09:12:17 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -589,7 +589,7 @@ ssh_packet_close_internal(struct ssh *ssh, int do_close)
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,