diff options
| author | Artyom Poptsov <poptsov.artyom@gmail.com> | 2013-06-16 21:26:21 +0400 |
|---|---|---|
| committer | Artyom Poptsov <poptsov.artyom@gmail.com> | 2013-06-16 21:26:21 +0400 |
| commit | 7e8e158d00e0f709b33a8058950ff22db013f329 (patch) | |
| tree | a6a8f1ab4d2b21816bf59502e37636e36f03faa3 /src | |
| parent | src/auth.{c,h,scm}: Implement ssh:userauth-get-list. (diff) | |
| download | guile-ssh-7e8e158d00e0f709b33a8058950ff22db013f329.tar.gz | |
src/auth.c (guile_ssh_userauth_get_list): Fix a bug.
* src/auth.c (guile_ssh_userauth_get_list): Fix a bug with wrong
scm_append call during making the list.
Diffstat (limited to 'src')
| -rw-r--r-- | src/auth.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -202,25 +202,25 @@ guile_ssh_userauth_get_list (SCM session_smob) if (res & SSH_AUTH_METHOD_PASSWORD) { SCM method = scm_from_locale_symbol ("password"); - auth_list = scm_append (scm_list_2 (auth_list, method)); + auth_list = scm_append (scm_list_2 (auth_list, scm_list_1 (method))); } if (res & SSH_AUTH_METHOD_PUBLICKEY) { SCM method = scm_from_locale_symbol ("public-key"); - auth_list = scm_append (scm_list_2 (auth_list, method)); + auth_list = scm_append (scm_list_2 (auth_list, scm_list_1 (method))); } if (res & SSH_AUTH_METHOD_HOSTBASED) { SCM method = scm_from_locale_symbol ("host-based"); - auth_list = scm_append (scm_list_2 (auth_list, method)); + auth_list = scm_append (scm_list_2 (auth_list, scm_list_1 (method))); } if (res & SSH_AUTH_METHOD_INTERACTIVE) { SCM method = scm_from_locale_symbol ("interactive"); - auth_list = scm_append (scm_list_2 (auth_list, method)); + auth_list = scm_append (scm_list_2 (auth_list, scm_list_1 (method))); } return auth_list; |
