Bug 710993 - Fix possible bad pointer/size mistake in HTTPUpload::SendRequest(). r=ted

This commit is contained in:
Himanshu 2012-07-20 20:19:37 -04:00
Родитель 5fd3e2bc43
Коммит f6afb2c0a7
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -152,14 +152,14 @@ bool HTTPUpload::SendRequest(const wstring &url,
if (!InternetSetOption(request.get(), if (!InternetSetOption(request.get(),
INTERNET_OPTION_SEND_TIMEOUT, INTERNET_OPTION_SEND_TIMEOUT,
timeout, timeout,
sizeof(timeout))) { sizeof(*timeout))) {
fwprintf(stderr, L"Could not unset send timeout, continuing...\n"); fwprintf(stderr, L"Could not unset send timeout, continuing...\n");
} }
if (!InternetSetOption(request.get(), if (!InternetSetOption(request.get(),
INTERNET_OPTION_RECEIVE_TIMEOUT, INTERNET_OPTION_RECEIVE_TIMEOUT,
timeout, timeout,
sizeof(timeout))) { sizeof(*timeout))) {
fwprintf(stderr, L"Could not unset receive timeout, continuing...\n"); fwprintf(stderr, L"Could not unset receive timeout, continuing...\n");
} }
} }