mirror of
https://github.com/curl/curl.git
synced 2026-07-29 04:23:08 +03:00
remove short-lived CURL_WRITEFUNC_OUT_OF_MEMORY
This commit is contained in:
parent
a1087db5c6
commit
d9f686db88
8 changed files with 4 additions and 49 deletions
11
lib/sendf.c
11
lib/sendf.c
|
|
@ -459,11 +459,6 @@ CURLcode Curl_client_write(struct connectdata *conn,
|
|||
wrote = len;
|
||||
}
|
||||
|
||||
if(CURL_WRITEFUNC_OUT_OF_MEMORY == wrote) {
|
||||
failf(data, "Out of memory writing body");
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
if(CURL_WRITEFUNC_PAUSE == wrote)
|
||||
return pausewrite(data, type, ptr, len);
|
||||
|
||||
|
|
@ -486,12 +481,6 @@ CURLcode Curl_client_write(struct connectdata *conn,
|
|||
regardless of the ftp transfer mode (ASCII/Image) */
|
||||
|
||||
wrote = writeit(ptr, 1, len, data->set.writeheader);
|
||||
|
||||
if(CURL_WRITEFUNC_OUT_OF_MEMORY == wrote) {
|
||||
failf(data, "Out of memory writing header");
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
if(CURL_WRITEFUNC_PAUSE == wrote)
|
||||
/* here we pass in the HEADER bit only since if this was body as well
|
||||
then it was passed already and clearly that didn't trigger the pause,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue