aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-06-01 11:47:28 +0000
committerted.mielczarek <ted.mielczarek@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-06-01 11:47:28 +0000
commit684649a57172532274e2b8b1307af6fa11fdabce (patch)
tree0237bcabbc5d58ac1e2cbfdc509ffbfe7818dbd1 /src/common
parentIssue 169 - Fill in CPU vendor id in MDRawSystemInfo in Linux minidump_genera... (diff)
downloadbreakpad-684649a57172532274e2b8b1307af6fa11fdabce.tar.xz
Issue 42 - check for non-existent dump file in HTTPUpload::SendRequest. r=bryner
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@186 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common')
-rw-r--r--src/common/windows/http_upload.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/windows/http_upload.cc b/src/common/windows/http_upload.cc
index cac2e15a..24a0c2c3 100644
--- a/src/common/windows/http_upload.cc
+++ b/src/common/windows/http_upload.cc
@@ -140,8 +140,10 @@ bool HTTPUpload::SendRequest(const wstring &url,
-1, HTTP_ADDREQ_FLAG_ADD);
string request_body;
- GenerateRequestBody(parameters, upload_file,
- file_part_name, boundary, &request_body);
+ if (!GenerateRequestBody(parameters, upload_file,
+ file_part_name, boundary, &request_body)) {
+ return false;
+ }
if (!HttpSendRequest(request.get(), NULL, 0,
const_cast<char *>(request_body.data()),