зеркало из https://github.com/mozilla/gecko-dev.git
Bug 710993 - Fix possible bad pointer/size mistake in HTTPUpload::SendRequest(). r=ted
This commit is contained in:
Родитель
5fd3e2bc43
Коммит
f6afb2c0a7
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче