diff --git a/lib/ssh.c b/lib/ssh.c index 7e42b22490120a882c8944acec56869692a4828b..7b5d1a788327b1d2f3b6313853efe16b72fe4de2 100644 --- a/lib/ssh.c +++ b/lib/ssh.c @@ -1493,7 +1493,7 @@ CURLcode Curl_sftp_do(struct connectdata *conn, bool *done) if (tmpLine == NULL) { return CURLE_OUT_OF_MEMORY; } - result = Curl_client_write(conn, CLIENTWRITE_BODY, tmpLine, 0); + res = Curl_client_write(conn, CLIENTWRITE_BODY, tmpLine, 0); Curl_safefree(tmpLine); } else {