summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2016-09-28 21:44:52 +0000
committerDamien Miller <djm@mindrot.org>2016-09-29 08:18:39 +1000
commitb7689155f3f5c4999846c07a852b1c7a43b09cec (patch)
tree9fedbd666c59b54e9c68f16d79e1b70e993ba570 /packet.c
parent4577adead6a7d600c8e764619d99477a08192c8f (diff)
upstream commit
put back some pre-auth zlib bits that I shouldn't have removed - they are still used by the client. Spotted by naddy@ Upstream-ID: 80919468056031037d56a1f5b261c164a6f90dc2
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/packet.c b/packet.c
index 337304bd0..50de0267a 100644
--- a/packet.c
+++ b/packet.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: packet.c,v 1.240 2016/09/28 20:32:42 djm Exp $ */ 1/* $OpenBSD: packet.c,v 1.241 2016/09/28 21:44:52 djm 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
@@ -965,8 +965,9 @@ ssh_set_newkeys(struct ssh *ssh, int mode)
965 /* explicit_bzero(enc->iv, enc->block_size); 965 /* explicit_bzero(enc->iv, enc->block_size);
966 explicit_bzero(enc->key, enc->key_len); 966 explicit_bzero(enc->key, enc->key_len);
967 explicit_bzero(mac->key, mac->key_len); */ 967 explicit_bzero(mac->key, mac->key_len); */
968 if (comp->type == COMP_DELAYED && state->after_authentication && 968 if ((comp->type == COMP_ZLIB ||
969 comp->enabled == 0) { 969 (comp->type == COMP_DELAYED &&
970 state->after_authentication)) && comp->enabled == 0) {
970 if ((r = ssh_packet_init_compression(ssh)) < 0) 971 if ((r = ssh_packet_init_compression(ssh)) < 0)
971 return r; 972 return r;
972 if (mode == MODE_OUT) { 973 if (mode == MODE_OUT) {