mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:01:41 +03:00
libssh: return the proper error for readdir problems
The code would return without setting sshc->actualcode or returning the CURLcode error. Reported by ZeroPath Closes #19135
This commit is contained in:
parent
026498df43
commit
990a23bb97
1 changed files with 1 additions and 0 deletions
|
|
@ -613,6 +613,7 @@ static int myssh_in_SFTP_READDIR(struct Curl_easy *data,
|
|||
|
||||
if(result) {
|
||||
myssh_to(data, sshc, SSH_STOP);
|
||||
sshc->actualcode = result;
|
||||
return SSH_NO_ERROR;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue