aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2014-03-25 11:01:08 +0100
committerHans Nilsson <[email protected]>2014-03-28 10:25:42 +0100
commit0f3f3ee36fe8824c6de165b9091353c1bc058a02 (patch)
tree4c78fa5d3faca1c2d20442c7ac660d063e12b6b4
parentf558e4a3744333507a92fb8fbbf8dc58a254f05f (diff)
downloadotp-0f3f3ee36fe8824c6de165b9091353c1bc058a02.tar.gz
otp-0f3f3ee36fe8824c6de165b9091353c1bc058a02.tar.bz2
otp-0f3f3ee36fe8824c6de165b9091353c1bc058a02.zip
ssh: Fix bug in failfun (was not always called)
-rw-r--r--lib/ssh/src/ssh_auth.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh_auth.erl b/lib/ssh/src/ssh_auth.erl
index 409a1db6d5..45fd907383 100644
--- a/lib/ssh/src/ssh_auth.erl
+++ b/lib/ssh/src/ssh_auth.erl
@@ -196,7 +196,7 @@ handle_userauth_request(#ssh_msg_userauth_request{user = User,
{authorized, User,
ssh_transport:ssh_packet(#ssh_msg_userauth_success{}, Ssh)};
false ->
- {not_authorized, {User, {passwd, Password}},
+ {not_authorized, {User, {error,"Bad user or password"}},
ssh_transport:ssh_packet(#ssh_msg_userauth_failure{
authentications = "",
partial_success = false}, Ssh)}
@@ -228,7 +228,7 @@ handle_userauth_request(#ssh_msg_userauth_request{user = User,
ssh_transport:ssh_packet(
#ssh_msg_userauth_success{}, Ssh)};
false ->
- {not_authorized, {User, {error, "Invalid signature"}},
+ {not_authorized, {User, undefined},
ssh_transport:ssh_packet(#ssh_msg_userauth_failure{
authentications="publickey,password",
partial_success = false}, Ssh)}