mirror of
https://github.com/curl/curl.git
synced 2026-07-09 02:37:15 +03:00
libssh2: fix to return error code on missing parameter
Reported by GitHub Code Quality
Follow-up to 0095f98464 #15250
Closes #22125
This commit is contained in:
parent
c35e2cb29f
commit
2735ef3bae
1 changed files with 1 additions and 1 deletions
|
|
@ -805,7 +805,7 @@ static CURLcode sftp_quote(struct Curl_easy *data,
|
|||
cp = strchr(cmd, ' ');
|
||||
if(!cp) {
|
||||
failf(data, "Syntax error command '%s', missing parameter", cmd);
|
||||
return result;
|
||||
return CURLE_QUOTE_ERROR;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue