From 684649a57172532274e2b8b1307af6fa11fdabce Mon Sep 17 00:00:00 2001 From: "ted.mielczarek" Date: Fri, 1 Jun 2007 11:47:28 +0000 Subject: 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 --- src/common/windows/http_upload.cc | 6 ++++-- 1 file 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(request_body.data()), -- cgit v1.2.1