From: Daniel Stenberg Date: Sun, 19 Oct 2025 09:24:46 +0000 (+0200) Subject: libssh: return the proper error for readdir problems X-Git-Tag: rc-8_17_0-2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=990a23bb97915567415d5857ee6d862a1528f1af;p=thirdparty%2Fcurl.git 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 --- diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index 3741db20dc..e2574b6817 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -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; }