Commit 9ea3831c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

James Housley fixed SCP downloading by setting the maxdownload.

parent a46f55b9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -560,6 +560,7 @@ CURLcode Curl_scp_do(struct connectdata *conn, bool *done)
    }
    /* download data */
    bytecount = (curl_off_t) sb.st_size;
    conn->data->reqdata.maxdownload =  (curl_off_t) sb.st_size;
    res = Curl_setup_transfer(conn, FIRSTSOCKET,
                              bytecount, FALSE, NULL, -1, NULL);
  }
+2 −2
Original line number Diff line number Diff line
@@ -2344,8 +2344,8 @@ CURLcode Curl_perform(struct SessionHandle *data)
}

/*
 * Curl_setup_transfer() is called to setup some basic properties for the upcoming
 * transfer.
 * Curl_setup_transfer() is called to setup some basic properties for the
 * upcoming transfer.
 */
CURLcode
Curl_setup_transfer(