diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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) { |