]> git.ipfire.org Git - thirdparty/curl.git/commit
formdata: ack read callback abort
authorDaniel Stenberg <daniel@haxx.se>
Sat, 15 Oct 2011 23:07:29 +0000 (01:07 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 15 Oct 2011 23:09:56 +0000 (01:09 +0200)
commit840eff44f2bea71acaa2a227998a97d01aacdc1f
tree2f0eddc19f513a85c8077b247ca090a548fccfd3
parentff03ee2a3c958065ad5fec657963deefb9b37ac0
formdata: ack read callback abort

When doing a multipart formpost with a read callback, and that callback
returns CURL_READFUNC_ABORT, that return code must be properly
propagated back and handled accordingly. Previously it would be handled
as a zero byte read which would cause a hang!

Added test case 587 to verify. It uses the lib554.c source code with a
small ifdef.

Reported by: Anton Bychkov
Bug: http://curl.haxx.se/mail/lib-2011-10/0097.html
lib/formdata.c
tests/data/test587 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib554.c