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:
Viktor Szakats 2026-06-22 10:26:36 +02:00
parent c35e2cb29f
commit 2735ef3bae
No known key found for this signature in database

View file

@ -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;
}
/*