mirror of
https://github.com/curl/curl.git
synced 2026-05-30 11:27:29 +03:00
libssh2: comparison is always true because rc <= -1
Pointed out by CodeQL Closes #16268
This commit is contained in:
parent
68555467b1
commit
54cd27a50d
1 changed files with 2 additions and 2 deletions
|
|
@ -1633,10 +1633,10 @@ static CURLcode sftp_readdir(struct Curl_easy *data,
|
|||
return result;
|
||||
}
|
||||
}
|
||||
else if(rc == 0) {
|
||||
else if(!rc) {
|
||||
state(data, SSH_SFTP_READDIR_DONE);
|
||||
}
|
||||
else if(rc < 0) {
|
||||
else {
|
||||
unsigned long sftperr = libssh2_sftp_last_error(sshc->sftp_session);
|
||||
result = sftp_libssh2_error_to_CURLE(sftperr);
|
||||
sshc->actualcode = result ? result : CURLE_SSH;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue