aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-10-15 07:43:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-10-15 07:43:48 +0000
commit0ecdcc253b87b5575c2cd96ac2f92a170bb3c906 (patch)
treee5659360c96dd02cce704898a6aa94629cd3c08d /lib
parent1667890172b848be62de8c162548eb9ec1df6e58 (diff)
- John Wilkinson filed bug #2155496
(http://curl.haxx.se/bug/view.cgi?id=2155496) pointing out an error case without a proper human-readable error message. When a read callback returns a too large value (like when trying to return a negative number) it would trigger and the generic error message then makes the proplem slightly different to track down. I've added an error message for this now.
Diffstat (limited to 'lib')
-rw-r--r--lib/transfer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index bd6629916..f15d9a0f2 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -152,6 +152,7 @@ CURLcode Curl_fillreadbuffer(struct connectdata *conn, int bytes, int *nreadp)
else if((size_t)nread > buffersize) {
/* the read function returned a too large value */
*nreadp = 0;
+ failf(data, "read function returned funny value");
return CURLE_READ_ERROR;
}