From cd7719726468a2a295cc41a126e1af97a5287d95 Mon Sep 17 00:00:00 2001 From: "ted.mielczarek" Date: Fri, 20 Jul 2012 17:54:32 +0000 Subject: [PATCH] Fix sizeof bug in HTTPUpload::SendRequest A=Himanshu R=ted at https://bugzilla.mozilla.org/show_bug.cgi?id=710993 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@992 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/common/windows/http_upload.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/windows/http_upload.cc b/src/common/windows/http_upload.cc index ddf61f7f..aabb9a46 100644 --- a/src/common/windows/http_upload.cc +++ b/src/common/windows/http_upload.cc @@ -152,14 +152,14 @@ bool HTTPUpload::SendRequest(const wstring &url, if (!InternetSetOption(request.get(), INTERNET_OPTION_SEND_TIMEOUT, timeout, - sizeof(timeout))) { + sizeof(*timeout))) { fwprintf(stderr, L"Could not unset send timeout, continuing...\n"); } if (!InternetSetOption(request.get(), INTERNET_OPTION_RECEIVE_TIMEOUT, timeout, - sizeof(timeout))) { + sizeof(*timeout))) { fwprintf(stderr, L"Could not unset receive timeout, continuing...\n"); } }