mirror of
https://github.com/curl/curl.git
synced 2025-09-29 23:46:47 +03:00
- Daniel Johnson founded a flaw in the code convering sftp-errors to libcurl
errors.
This commit is contained in:
parent
e47c939822
commit
7a642c8bf1
4
CHANGES
4
CHANGES
|
@ -6,6 +6,10 @@
|
||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Daniel Stenberg (2 Sep 2009)
|
||||||
|
- Daniel Johnson founded a flaw in the code convering sftp-errors to libcurl
|
||||||
|
errors.
|
||||||
|
|
||||||
Daniel Stenberg (1 Sep 2009)
|
Daniel Stenberg (1 Sep 2009)
|
||||||
- Peter Sylvester made a debug featuer for Curl_resolv() that now will force
|
- Peter Sylvester made a debug featuer for Curl_resolv() that now will force
|
||||||
libcurl to resolve 'localhost' whatever name you use in the URL *if* you set
|
libcurl to resolve 'localhost' whatever name you use in the URL *if* you set
|
||||||
|
|
|
@ -36,6 +36,6 @@ This release would not have looked like this without help, code, reports and
|
||||||
advice from friends like these:
|
advice from friends like these:
|
||||||
|
|
||||||
Karl Moerder, Kamil Dudka, Krister Johansen, Andre Guibert de Bruet,
|
Karl Moerder, Kamil Dudka, Krister Johansen, Andre Guibert de Bruet,
|
||||||
Michal Marek, Eric Wong, Guenter Knauf, Peter Sylvester
|
Michal Marek, Eric Wong, Guenter Knauf, Peter Sylvester, Daniel Johnson
|
||||||
|
|
||||||
Thanks! (and sorry if I forgot to mention someone)
|
Thanks! (and sorry if I forgot to mention someone)
|
||||||
|
|
|
@ -230,15 +230,12 @@ kbd_callback(const char *name, int name_len, const char *instruction,
|
||||||
(void)abstract;
|
(void)abstract;
|
||||||
} /* kbd_callback */
|
} /* kbd_callback */
|
||||||
|
|
||||||
static CURLcode sftp_libssh2_error_to_CURLE(unsigned long err)
|
static CURLcode sftp_libssh2_error_to_CURLE(int err)
|
||||||
{
|
{
|
||||||
switch (err) {
|
switch (err) {
|
||||||
case LIBSSH2_FX_OK:
|
case LIBSSH2_FX_OK:
|
||||||
return CURLE_OK;
|
return CURLE_OK;
|
||||||
|
|
||||||
case LIBSSH2_ERROR_ALLOC:
|
|
||||||
return CURLE_OUT_OF_MEMORY;
|
|
||||||
|
|
||||||
case LIBSSH2_FX_NO_SUCH_FILE:
|
case LIBSSH2_FX_NO_SUCH_FILE:
|
||||||
case LIBSSH2_FX_NO_SUCH_PATH:
|
case LIBSSH2_FX_NO_SUCH_PATH:
|
||||||
return CURLE_REMOTE_FILE_NOT_FOUND;
|
return CURLE_REMOTE_FILE_NOT_FOUND;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user