aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src/ssh_transport.erl
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-02-12 17:49:05 +0100
committerFredrik Gustafsson <[email protected]>2013-02-15 11:35:16 +0100
commit0cb74d672f5f1046460aef1ea662c7f539889594 (patch)
tree7bb74faa367820e18a0462c88ba36cadfc2e9bba /lib/ssh/src/ssh_transport.erl
parentdde4bc77cd5be76102cd913c1c931844856ad76e (diff)
downloadotp-0cb74d672f5f1046460aef1ea662c7f539889594.tar.gz
otp-0cb74d672f5f1046460aef1ea662c7f539889594.tar.bz2
otp-0cb74d672f5f1046460aef1ea662c7f539889594.zip
Error msg to be returned together with Key exchange failed
Diffstat (limited to 'lib/ssh/src/ssh_transport.erl')
-rw-r--r--lib/ssh/src/ssh_transport.erl8
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.