Commit bf1c102b authored by Yang Tse's avatar Yang Tse
Browse files

ssh: fix a download resume point calculation

parent 2271b60b
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1975,7 +1975,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
            return CURLE_BAD_DOWNLOAD_RESUME;
          }
          /* download from where? */
          data->state.resume_from = attrs.filesize - data->state.resume_from;
          data->state.resume_from += attrs.filesize;
        }
        else {
          if((curl_off_t)attrs.filesize < data->state.resume_from) {