diff options
author | Fredrik Gustafsson <[email protected]> | 2013-01-22 10:10:51 +0100 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-01-22 10:10:51 +0100 |
commit | 5c7bc9787b51f0d3ca3409b198b906c90da26a22 (patch) | |
tree | e0cd1a9e2dbaf1bbb798ed8ddd14ff124dfac33b /lib/ssh/src/ssh.erl | |
parent | f9ffedd3d89ad7a826dbf4be99dc08788019dc0a (diff) | |
download | otp-5c7bc9787b51f0d3ca3409b198b906c90da26a22.tar.gz otp-5c7bc9787b51f0d3ca3409b198b906c90da26a22.tar.bz2 otp-5c7bc9787b51f0d3ca3409b198b906c90da26a22.zip |
handle_pref_algs with correct return values
Diffstat (limited to 'lib/ssh/src/ssh.erl')
-rw-r--r-- | lib/ssh/src/ssh.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssh/src/ssh.erl b/lib/ssh/src/ssh.erl index b5a0aa2e05..4bb0ae148e 100644 --- a/lib/ssh/src/ssh.erl +++ b/lib/ssh/src/ssh.erl @@ -394,8 +394,8 @@ handle_ssh_option({public_key_alg, Value} = Opt) when Value == 'ssh-rsa'; Value Opt; handle_ssh_option({pref_public_key_algs, Value} = Opt) when is_list(Value), length(Value) >= 1 -> case handle_pref_algs(Value, []) of - true -> - Opt; + {true, NewOpts} -> + NewOpts; _ -> throw({error, {eoptions, Opt}}) end; |