diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-08-19 21:18:36 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-08-19 21:18:36 +0000 |
commit | cfdcae4bc75fba04b9864cae18e0bbe66b8655b9 (patch) | |
tree | 2012bd78cd739dddfcd85bdaae543919af7be23f /lib/tftp.c | |
parent | 74a6921bc454fcbf842a221e95ba5dc09b19049e (diff) |
Based on a patch by Armel Asselin, the FTP code no longer re-issues the TYPE
command on subsequent requests on a re-used connection unless it has to.
Diffstat (limited to 'lib/tftp.c')
-rw-r--r-- | lib/tftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index 1bf7281bb..61800cc3d 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -261,7 +261,7 @@ static CURLcode tftp_send_first(tftp_state_data_t *state, tftp_event_t event) CURLcode res = CURLE_OK; /* Set ascii mode if -B flag was used */ - if(data->set.ftp_ascii) + if(data->set.prefer_ascii) mode = "netascii"; switch(event) { @@ -699,7 +699,7 @@ CURLcode Curl_tftp(struct connectdata *conn, bool *done) /* Don't pass to the client empty or retransmitted packets */ if (state->rbytes > 4 && ((state->block+1) == getrpacketblock(&state->rpacket))) { - code = Curl_client_write(data, CLIENTWRITE_BODY, + code = Curl_client_write(conn, CLIENTWRITE_BODY, (char *)&state->rpacket.data[4], state->rbytes-4); if(code) |