=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/packet.c,v retrieving revision 1.240 retrieving revision 1.241 diff -u -r1.240 -r1.241 --- src/usr.bin/ssh/packet.c 2016/09/28 20:32:42 1.240 +++ src/usr.bin/ssh/packet.c 2016/09/28 21:44:52 1.241 @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.240 2016/09/28 20:32:42 djm Exp $ */ +/* $OpenBSD: packet.c,v 1.241 2016/09/28 21:44:52 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -954,8 +954,9 @@ /* explicit_bzero(enc->iv, enc->block_size); explicit_bzero(enc->key, enc->key_len); explicit_bzero(mac->key, mac->key_len); */ - if (comp->type == COMP_DELAYED && state->after_authentication && - comp->enabled == 0) { + if ((comp->type == COMP_ZLIB || + (comp->type == COMP_DELAYED && + state->after_authentication)) && comp->enabled == 0) { if ((r = ssh_packet_init_compression(ssh)) < 0) return r; if (mode == MODE_OUT) {