diff options
-rw-r--r-- | lib/ssh.c | 5 | ||||
-rw-r--r-- | tests/data/test605 | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -261,6 +261,11 @@ static CURLcode libssh2_session_error_to_CURLE(int err) case LIBSSH2_ERROR_NONE: return CURLE_OK; + /* This is the error returned by libssh2_scp_recv2 + * on unknown file */ + case LIBSSH2_ERROR_SCP_PROTOCOL: + return CURLE_REMOTE_FILE_NOT_FOUND; + case LIBSSH2_ERROR_SOCKET_NONE: return CURLE_COULDNT_CONNECT; diff --git a/tests/data/test605 b/tests/data/test605 index 1c162fca5..94329a528 100644 --- a/tests/data/test605 +++ b/tests/data/test605 @@ -24,7 +24,7 @@ SCP retrieval of nonexistent file # Verify data after the test has been "shot" <verify> <errorcode> -79 +78 </errorcode> <valgrind> disable |