Loading lib/ssh.c +5 −4 Original line number Diff line number Diff line Loading @@ -181,7 +181,8 @@ static CURLcode sftp_libssh2_error_to_CURLE(unsigned long err) static CURLcode libssh2_session_error_to_CURLE(int err) { (void)err; if (err == LIBSSH2_ERROR_ALLOC) return CURLE_OUT_OF_MEMORY; return CURLE_SSH; } Loading Loading @@ -350,12 +351,12 @@ static CURLcode ssh_statemach_act(struct connectdata *conn) strlen(sftp_scp->user)); if (!sshc->authlist) { if (libssh2_session_last_errno(sftp_scp->ssh_session) == if ((err = libssh2_session_last_errno(sftp_scp->ssh_session)) == LIBSSH2_ERROR_EAGAIN) { break; } else { state(conn, SSH_SESSION_FREE); sshc->actualCode = CURLE_OUT_OF_MEMORY; sshc->actualCode = libssh2_session_error_to_CURLE(err); break; } } Loading Loading
lib/ssh.c +5 −4 Original line number Diff line number Diff line Loading @@ -181,7 +181,8 @@ static CURLcode sftp_libssh2_error_to_CURLE(unsigned long err) static CURLcode libssh2_session_error_to_CURLE(int err) { (void)err; if (err == LIBSSH2_ERROR_ALLOC) return CURLE_OUT_OF_MEMORY; return CURLE_SSH; } Loading Loading @@ -350,12 +351,12 @@ static CURLcode ssh_statemach_act(struct connectdata *conn) strlen(sftp_scp->user)); if (!sshc->authlist) { if (libssh2_session_last_errno(sftp_scp->ssh_session) == if ((err = libssh2_session_last_errno(sftp_scp->ssh_session)) == LIBSSH2_ERROR_EAGAIN) { break; } else { state(conn, SSH_SESSION_FREE); sshc->actualCode = CURLE_OUT_OF_MEMORY; sshc->actualCode = libssh2_session_error_to_CURLE(err); break; } } Loading