mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:43:40 +03:00
error code cleanup, use the new SEND/RECV errors
This commit is contained in:
parent
536ea60d73
commit
e8109b09b1
4 changed files with 10 additions and 10 deletions
|
|
@ -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! */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue