From 0aedccc18a33a7785350d8d622ef273c727690cf Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 13 Jun 2011 22:32:00 +0200 Subject: curl_formget: fix FILE * leak Properly deal with the fact that the last fread() call most probably is a short read, and when using callbacks in fact all calls can be short reads. No longer consider a file read done until it returns a 0 from the read function. Reported by: Aaron Orenstein Bug: http://curl.haxx.se/mail/lib-2011-06/0048.html --- tests/data/test1308 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/data/test1308') diff --git a/tests/data/test1308 b/tests/data/test1308 index fe7509688..88e9771dd 100644 --- a/tests/data/test1308 +++ b/tests/data/test1308 @@ -23,6 +23,9 @@ formpost unit tests unit1308 + +Piece of the file that is to uploaded as a formpost + -- cgit v1.2.3