From 0cb74d672f5f1046460aef1ea662c7f539889594 Mon Sep 17 00:00:00 2001 From: Fredrik Gustafsson Date: Tue, 12 Feb 2013 17:49:05 +0100 Subject: Error msg to be returned together with Key exchange failed --- lib/ssh/src/ssh_transport.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/ssh') 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. -- cgit v1.2.3