]> granicus.if.org Git - curl/commit
Fix tftp return codes and tsize upload handling
authorBen Greear <greearb@candelatech.com>
Sun, 21 Mar 2010 22:24:36 +0000 (23:24 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 21 Mar 2010 22:24:36 +0000 (23:24 +0100)
commitad76d58e7f1f26739255c22a69725c83eb47511a
tree5d876e62c7dd095d8ca81134095367b591b0c527
parent930742776ad643b57577c29606e0af827b714d9f
Fix tftp return codes and tsize upload handling

Error codes were not properly returned to the main curl code (and on to apps
using libcurl).

tftp was crapping out when tsize == 0 on upload, but I see no reason to fail
to upload just because the remote file is zero-length.  Ignore tsize option on
upload.
lib/tftp.c