]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh: remove a condition that always equals false
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 May 2025 19:55:41 +0000 (21:55 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 15 May 2025 21:03:35 +0000 (23:03 +0200)
Found by Coverity

Closes #17358

lib/vssh/libssh.c

index 6eac9d697b8d84daeefc6a9c83604afa268e4344..30fde410dd49acc76d1a5f82464072c965ecfd3e 100644 (file)
@@ -877,8 +877,6 @@ static int myssh_state_upload_init(struct Curl_easy *data,
           return rc;
         }
       } while(passed < data->state.resume_from);
-      if(rc)
-        return rc;
     }
 
     /* now, decrease the size of the read */