aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTyler Hall <tylerwhall@gmail.com>2013-10-14 22:24:17 +0200
committerDaniel Stenberg <daniel@haxx.se>2013-10-15 20:53:09 +0200
commit0218a737fe7b8f47d07d815e4b75648078ddc5d2 (patch)
tree0d91156649ae83538256313b7b21c82be5f0de93 /tests
parent18ca0aa9842d3fb6e0740515df7b5960fab4408e (diff)
ssh: Handle successful SSH_USERAUTH_NONE
According to the documentation for libssh2_userauth_list(), a NULL return value is not necessarily an error. You must call libssh2_userauth_authenticated() to determine if the SSH_USERAUTH_NONE request was successful. This fixes a segv when using sftp on a server that allows logins with an empty password. When NULL was interpreted as an error, it would free the session but not flag an error since the libssh2 errno would be clear. This resulted in dereferencing a NULL session pointer. Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions