aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-05-18 23:14:00 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-05-18 23:14:00 +0200
commitaabd27d9aaefdb1c6f815567c2ff05a4449a36c3 (patch)
tree99bd7fcec039d69670ac66f148feab8ce867f93e /lib
parentdcc061543af355d0b8f30d9bfbbd67ebcb0e5752 (diff)
TFTP: send timeout option correctly
Eric Mertens posted bug report #3003005 pointing out that the libcurl TFTP code was not sending the timeout option properly to the server, and suggested a fix. (http://curl.haxx.se/bug/view.cgi?id=3003005)
Diffstat (limited to 'lib')
-rw-r--r--lib/tftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index 3c288b66e..141c57570 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -87,8 +87,10 @@
#define TFTP_BLKSIZE_MIN 8
#define TFTP_BLKSIZE_MAX 65464
#define TFTP_OPTION_BLKSIZE "blksize"
-#define TFTP_OPTION_TSIZE "tsize"
-#define TFTP_OPTION_INTERVAL "interval"
+
+/* from RFC2349: */
+#define TFTP_OPTION_TSIZE "tsize"
+#define TFTP_OPTION_INTERVAL "timeout"
typedef enum {
TFTP_MODE_NETASCII=0,