diff options
author | Yang Tse <yangsita@gmail.com> | 2011-09-26 03:18:51 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-09-26 13:05:42 +0200 |
commit | d9f686db88cc6ed01af8f7d690a9e44b7dcfb6ee (patch) | |
tree | 6cb022096ed3d70163760390e60a7fcb5a48ef7b /lib/sendf.c | |
parent | a1087db5c61c7cc1e8bae09d2abc65a88d1826cf (diff) | |
download | curl-d9f686db88cc6ed01af8f7d690a9e44b7dcfb6ee.tar.gz |
remove short-lived CURL_WRITEFUNC_OUT_OF_MEMORY
Diffstat (limited to 'lib/sendf.c')
-rw-r--r-- | lib/sendf.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index e9d5c3775..847090be3 100644 --- a/lib/sendf.c +++ b/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, |