aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-10 13:44:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-10 13:44:42 +0000
commite8109b09b117749dc9b7e2ab7d51bd100e254d7e (patch)
tree4db0ba1cf29ce633dae02851065de8a4f594064a /lib/transfer.c
parent536ea60d73cd407b076c36bb0dbf72c37a586b0e (diff)
error code cleanup, use the new SEND/RECV errors
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 671dba560..2e0116882 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -244,7 +244,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
newbuff = (char *)realloc(data->state.headerbuff, newsize);
if(!newbuff) {
failf (data, "Failed to alloc memory for big header!");
- return CURLE_READ_ERROR;
+ return CURLE_OUT_OF_MEMORY;
}
data->state.headersize=newsize;
data->state.headerbuff = newbuff;
@@ -274,7 +274,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
newbuff = (char *)realloc(data->state.headerbuff, newsize);
if(!newbuff) {
failf (data, "Failed to alloc memory for big header!");
- return CURLE_READ_ERROR;
+ return CURLE_OUT_OF_MEMORY;
}
data->state.headersize= newsize;
data->state.headerbuff = newbuff;
@@ -696,7 +696,7 @@ CURLcode Curl_readwrite(struct connectdata *conn,
return CURLE_WRITE_ERROR;
}
failf(data, "Received problem in the chunky parser");
- return CURLE_READ_ERROR;
+ return CURLE_RECV_ERROR;
}
else if(CHUNKE_STOP == res) {
/* we're done reading chunks! */