aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2016-11-28 14:50:08 +0100
committerHans Nilsson <[email protected]>2016-12-14 11:46:45 +0100
commita8ea98ef814022dc02a1917105a0572007952e52 (patch)
tree2bff5b27b4108698e8f1299bc6704ef765e0fafc /lib/ssh
parent6e693e0a411eb6fe5301683a9bb2babbc2ed50c5 (diff)
downloadotp-a8ea98ef814022dc02a1917105a0572007952e52.tar.gz
otp-a8ea98ef814022dc02a1917105a0572007952e52.tar.bz2
otp-a8ea98ef814022dc02a1917105a0572007952e52.zip
ssh: [test] Put tstflg values in a proplist
Diffstat (limited to 'lib/ssh')
-rw-r--r--lib/ssh/src/ssh_auth.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ssh/src/ssh_auth.erl b/lib/ssh/src/ssh_auth.erl
index ac35b70209..9b54ecb2dd 100644
--- a/lib/ssh/src/ssh_auth.erl
+++ b/lib/ssh/src/ssh_auth.erl
@@ -406,7 +406,11 @@ handle_userauth_info_response(#ssh_msg_userauth_info_response{num_responses = 1,
kb_tries_left = KbTriesLeft,
user = User,
userauth_supported_methods = Methods} = Ssh) ->
- SendOneEmpty = proplists:get_value(tstflg, Opts) == one_empty,
+ SendOneEmpty =
+ (proplists:get_value(tstflg,Opts) == one_empty)
+ orelse
+ proplists:get_value(one_empty, proplists:get_value(tstflg,Opts,[]), false),
+
case check_password(User, unicode:characters_to_list(Password), Opts, Ssh) of
{true,Ssh1} when SendOneEmpty==true ->
Msg = #ssh_msg_userauth_info_request{name = "",