aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.