]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Song Ma filed bug report #1724016
authorDaniel Stenberg <daniel@haxx.se>
Thu, 24 May 2007 21:11:18 +0000 (21:11 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 24 May 2007 21:11:18 +0000 (21:11 +0000)
(http://curl.haxx.se/bug/view.cgi?id=1724016) noticing that downloading
glob-ranges for TFTP was broken in CVS.

CHANGES
lib/tftp.c

diff --git a/CHANGES b/CHANGES
index 60d388942bd27c3044d56fbf001b3982d350d9b2..a4db52af073d393967f71ebe993cc6e2d3b33d70 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,6 +6,10 @@
 
                                   Changelog
 Daniel S (24 May 2007)
+- 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. Fixed now.
+  
 - 'mytx' in bug report #1723194 (http://curl.haxx.se/bug/view.cgi?id=1723194)
   pointed out that the warnf() function in the curl tool didn't properly deal
   with the cases when excessively long words were used in the string to chop
index d63ad773b4f658358c19ee17843d89f73b016348..0e5b15dabb682739938f0950e7ae675f52f33457 100644 (file)
@@ -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);