From 550c053168123fcc0791f9952abad684704b5760 Mon Sep 17 00:00:00 2001 From: "dtucker@openbsd.org" Date: Tue, 6 Jun 2017 09:12:17 +0000 Subject: 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 --- packet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packet.c') diff --git a/packet.c b/packet.c index 2661f647e..7c7486886 100644 --- a/packet.c +++ b/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 * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -600,7 +600,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, -- cgit v1.2.3