diff options
author | djm@openbsd.org <djm@openbsd.org> | 2016-09-28 20:32:42 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2016-09-29 06:54:50 +1000 |
commit | 4577adead6a7d600c8e764619d99477a08192c8f (patch) | |
tree | 1f825ee75953b95abab5a88ee9f8e241cab9eec1 /packet.c | |
parent | 80d1c963b4dc84ffd11d09617b39c4bffda08956 (diff) |
upstream commit
restore pre-auth compression support in the client -- the
previous commit was intended to remove it from the server only.
remove a few server-side pre-auth compression bits that escaped
adjust wording of Compression directive in sshd_config(5)
pointed out by naddy@ ok markus@
Upstream-ID: d23696ed72a228dacd4839dd9f2dec424ba2016b
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: packet.c,v 1.239 2016/09/28 16:33:07 djm Exp $ */ | 1 | /* $OpenBSD: packet.c,v 1.240 2016/09/28 20:32:42 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,9 +965,8 @@ 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_ZLIB || | 968 | if (comp->type == COMP_DELAYED && state->after_authentication && |
969 | (comp->type == COMP_DELAYED && | 969 | comp->enabled == 0) { |
970 | state->after_authentication)) && comp->enabled == 0) { | ||
971 | if ((r = ssh_packet_init_compression(ssh)) < 0) | 970 | if ((r = ssh_packet_init_compression(ssh)) < 0) |
972 | return r; | 971 | return r; |
973 | if (mode == MODE_OUT) { | 972 | if (mode == MODE_OUT) { |