summaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-05-18 10:32:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-05-18 10:32:48 +0000
commit250f9670b72637a2cdca49d6ac5656c6f58235fd (patch)
treead5e49e72a94b902a331ef31c79fc26823afb8d8 /lib/transfer.c
parented4936fd30122d142e89f11518b2f3bc66fea721 (diff)
downloadcurl-250f9670b72637a2cdca49d6ac5656c6f58235fd.tar.gz
Feng Tu reported that curl -w did wrong on TFTP transfers in
bug report #1715394 (http://curl.haxx.se/bug/view.cgi?id=1715394), and the transfer-related info "variables" were indeed overwritten with zeroes wrongly and have now been adjusted. The upload size still isn't accurate.
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 10a3f87dc..f8d0af87b 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1792,9 +1792,11 @@ Transfer(struct connectdata *conn)
struct Curl_transfer_keeper *k = &data->reqdata.keep;
bool done=FALSE;
- if(!(conn->protocol & PROT_FILE)) {
- /* Only do this if we are not transferring FILE:, since the file: treatment
- is different*/
+ if(!(conn->protocol & (PROT_FILE|PROT_TFTP))) {
+ /* Only do this if we are not transferring FILE or TFTP, since those
+ transfers are treated differently. They do their entire transfers in
+ the DO function and just returns from this. That is ugly indeed.
+ */
Curl_readwrite_init(conn);
Curl_pre_readwrite(conn);
}