diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-04-15 11:19:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-04-15 11:19:03 +0000 |
commit | 95f78080abd4a07f95e1aa06737e1faa854614c7 (patch) | |
tree | e977171c4da5025a27eb5a3e1a4dff4091c54105 /lib/http.c | |
parent | 9549cfde02d72812c5cc1ce241955382b5bc371f (diff) |
This makes formposting with a specified file missing fail. curl_easy_perform
will then return CURLE_READ_ERROR.
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c index 758433509..dc074aced 100644 --- a/lib/http.c +++ b/lib/http.c @@ -562,7 +562,13 @@ CURLcode Curl_http(struct connectdata *conn) if(HTTPREQ_POST_FORM == data->set.httpreq) { /* we must build the whole darned post sequence first, so that we have a size of the whole shebang before we start to send it */ - http->sendit = Curl_getFormData(data->set.httppost, &http->postsize); + result = Curl_getFormData(&http->sendit, data->set.httppost, + &http->postsize); + if(CURLE_OK != result) { + /* Curl_getFormData() doesn't use failf() */ + failf(data, "failed creating formpost data"); + return result; + } } if(!checkheaders(data, "Host:")) { |