From 2735ef3baeaf8ee7a6019e224d83a2501ea1d437 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 22 Jun 2026 10:26:36 +0200 Subject: [PATCH] libssh2: fix to return error code on missing parameter Reported by GitHub Code Quality Follow-up to 0095f98464d85a3b2863d1c9ef7c5a71c9739450 #15250 Closes #22125 --- lib/vssh/libssh2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c index 1dd4a9107b..371667d44b 100644 --- a/lib/vssh/libssh2.c +++ b/lib/vssh/libssh2.c @@ -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; } /*