aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-05-24 21:11:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-05-24 21:11:18 +0000
commitc25da519138797ff25a8e85d832665fd2b2ed21f (patch)
tree2b1a6a6886ecd4464f8a42ecf81857549c7b1f12 /lib
parent05ab8d291c07d9a544516a422a541c15f0b01e96 (diff)
Song Ma filed bug report #1724016
(http://curl.haxx.se/bug/view.cgi?id=1724016) noticing that downloading glob-ranges for TFTP was broken in CVS.
Diffstat (limited to 'lib')
-rw-r--r--lib/tftp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index d63ad773b..0e5b15dab 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -687,6 +687,10 @@ CURLcode Curl_tftp(struct connectdata *conn, bool *done)
state = (tftp_state_data_t *)conn->data->reqdata.proto.tftp;
}
+ code = Curl_readwrite_init(conn);
+ if(code)
+ return code;
+
/* Run the TFTP State Machine */
for(code=tftp_state_machine(state, TFTP_EVENT_INIT);
(state->state != TFTP_STATE_FIN) && (code == CURLE_OK);