Fix compression output stats broken in rev 1.201. Patch originally by
authordtucker <dtucker@openbsd.org>
Tue, 6 Jun 2017 09:12:17 +0000 (09:12 +0000)
committerdtucker <dtucker@openbsd.org>
Tue, 6 Jun 2017 09:12:17 +0000 (09:12 +0000)
Russell Coker via Debian bug #797964 and Christoph Biedl.  ok djm@

usr.bin/ssh/packet.c

index c650d39..ab25778 100644 (file)
@@ -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,