diff options
author | Fredrik Gustafsson <[email protected]> | 2013-02-12 17:49:05 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-02-15 11:35:16 +0100 |
commit | 0cb74d672f5f1046460aef1ea662c7f539889594 (patch) | |
tree | 7bb74faa367820e18a0462c88ba36cadfc2e9bba /lib | |
parent | dde4bc77cd5be76102cd913c1c931844856ad76e (diff) | |
download | otp-0cb74d672f5f1046460aef1ea662c7f539889594.tar.gz otp-0cb74d672f5f1046460aef1ea662c7f539889594.tar.bz2 otp-0cb74d672f5f1046460aef1ea662c7f539889594.zip |
Error msg to be returned together with Key exchange failed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssh/src/ssh_transport.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ssh/src/ssh_transport.erl b/lib/ssh/src/ssh_transport.erl index 8f81cdde5e..0eb971a44c 100644 --- a/lib/ssh/src/ssh_transport.erl +++ b/lib/ssh/src/ssh_transport.erl @@ -362,10 +362,10 @@ handle_kexdh_reply(#ssh_msg_kexdh_reply{public_host_key = HostKey, f = F, description = "Key exchange failed", language = "en"}, ErrorMsg = case Error of - {error, rejected} -> - {error, {rejected, {hostkey, HostKey}}}; - _ -> - Error + {_, What} -> + {What, []}; + Else -> + {Else, []} end, throw({ErrorMsg, Disconnect}) end. |