diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-04-10 13:44:42 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-04-10 13:44:42 +0000 |
commit | e8109b09b117749dc9b7e2ab7d51bd100e254d7e (patch) | |
tree | 4db0ba1cf29ce633dae02851065de8a4f594064a /lib/transfer.c | |
parent | 536ea60d73cd407b076c36bb0dbf72c37a586b0e (diff) |
error code cleanup, use the new SEND/RECV errors
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 6 |
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! */ |