]> granicus.if.org Git - curl/commit
TFTP: Fix upload problem with piped input
authorSerj Kalichev <serj.kalichev@gmail.com>
Tue, 2 Aug 2016 22:29:09 +0000 (00:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 3 Aug 2016 22:30:31 +0000 (00:30 +0200)
commitedeabf741fed90aecb39bb38dc0eeb68d6e305eb
tree3ab52b253f65b6f2a2d2f63c0801456be9d1950e
parent600bb4e852e23769efd575c5a6383e9b1988384f
TFTP: Fix upload problem with piped input

When input stream for curl is stdin and input stream is not a file but
generated by a script then curl can truncate data transfer to arbitrary
size since a partial packet is treated as end of transfer by TFTP.

Fixes #857
lib/tftp.c