]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh2: fix to return error code on missing parameter
authorViktor Szakats <commit@vsz.me>
Mon, 22 Jun 2026 08:26:36 +0000 (10:26 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 22 Jun 2026 10:08:35 +0000 (12:08 +0200)
Reported by GitHub Code Quality

Follow-up to 0095f98464d85a3b2863d1c9ef7c5a71c9739450 #15250

Closes #22125

lib/vssh/libssh2.c

index 1dd4a9107b84506226b8ea9c3401ea50bb5b5766..371667d44b2c15c6d1ab5abb57dd5bcb2245b3e3 100644 (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;
   }
 
   /*