summaryrefslogtreecommitdiffhomepage
path: root/svr-auth.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2008-09-29 02:23:04 +0000
committerMatt Johnston <matt@ucc.asn.au>2008-09-29 02:23:04 +0000
commit049fcf1ac572e1a13dc1281c26bbf3512c533fb7 (patch)
tree62b2290f5f6e4c0c8e0a3c0263eaa991357abb24 /svr-auth.c
parent90f8c1fd51ac6af033d455a775dc5a1455d7d7cb (diff)
Add support for zlib@openssh.com delayed compression.
Are still advertising 'zlib' for the server, need to allow delayed-only as an option --HG-- extra : convert_revision : 319df675cc3c9b35a10b7d8357c94f33fdab1a46
Diffstat (limited to 'svr-auth.c')
-rw-r--r--svr-auth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/svr-auth.c b/svr-auth.c
index 4adf809..5da0aa7 100644
--- a/svr-auth.c
+++ b/svr-auth.c
@@ -368,6 +368,8 @@ void send_msg_userauth_success() {
buf_putbyte(ses.writepayload, SSH_MSG_USERAUTH_SUCCESS);
encrypt_packet();
+ /* authdone must be set after encrypt_packet() for
+ * delayed-zlib mode */
ses.authstate.authdone = 1;
ses.connect_time = 0;