aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-09-02 21:05:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-09-02 21:05:47 +0000
commit7a642c8bf10266978baf8a45c039d8656dcd5b36 (patch)
tree0a79383f18e542d08bed421f66bb41b11c534ed7 /lib
parente47c93982215f78d67a8c79f904c9a897f195d57 (diff)
- Daniel Johnson founded a flaw in the code convering sftp-errors to libcurl
errors.
Diffstat (limited to 'lib')
-rw-r--r--lib/ssh.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index 01d035322..a6d379f79 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -230,15 +230,12 @@ kbd_callback(const char *name, int name_len, const char *instruction,
(void)abstract;
} /* kbd_callback */
-static CURLcode sftp_libssh2_error_to_CURLE(unsigned long err)
+static CURLcode sftp_libssh2_error_to_CURLE(int err)
{
switch (err) {
case LIBSSH2_FX_OK:
return CURLE_OK;
- case LIBSSH2_ERROR_ALLOC:
- return CURLE_OUT_OF_MEMORY;
-
case LIBSSH2_FX_NO_SUCH_FILE:
case LIBSSH2_FX_NO_SUCH_PATH:
return CURLE_REMOTE_FILE_NOT_FOUND;