aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_connection_handler.erl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-08-21 08:40:56 +0200
committerFredrik Gustafsson <[email protected]>2013-08-21 08:40:56 +0200
commitbabcd2b454b37f195721c501f014486e4c5617b2 (patch)
treed1f687e0767dacfacdfce092066e6bc9b9e74d90 /lib/ssh/src/ssh_connection_handler.erl
parent68cbc7315be2db64622f2cb4a168ad60efb90259 (diff)
parent4f0f336665ea63a7865881e1f41e435de4342077 (diff)
downloadotp-babcd2b454b37f195721c501f014486e4c5617b2.tar.gz
otp-babcd2b454b37f195721c501f014486e4c5617b2.tar.bz2
otp-babcd2b454b37f195721c501f014486e4c5617b2.zip
Merge branch 'lpg/openssh_zlib/OTP-11256' into maint
* lpg/openssh_zlib/OTP-11256: ssh: added basic connection testcase for openssh zlib Add openssh_zlib compression type to ssh_transport
Diffstat (limited to 'lib/ssh/src/ssh_connection_handler.erl')
-rw-r--r--lib/ssh/src/ssh_connection_handler.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl
index df6175e27c..9de4dd5967 100644
--- a/lib/ssh/src/ssh_connection_handler.erl
+++ b/lib/ssh/src/ssh_connection_handler.erl
@@ -426,10 +426,10 @@ userauth(#ssh_msg_userauth_info_response{} = Msg,
language = "en"}, State)
end;
-userauth(#ssh_msg_userauth_success{}, #state{ssh_params = #ssh{role = client},
+userauth(#ssh_msg_userauth_success{}, #state{ssh_params = #ssh{role = client} = Ssh,
manager = Pid} = State) ->
Pid ! ssh_connected,
- {next_state, connected, next_packet(State)};
+ {next_state, connected, next_packet(State#state{ssh_params = Ssh#ssh{authenticated = true}})};
userauth(#ssh_msg_userauth_failure{},
#state{ssh_params = #ssh{role = client,