зеркало из https://github.com/mozilla/pjs.git
Partial fix for 41876; change the state of the converter into INIT after
getting a failure code from the upstream listener. This prevents it from crashing, a=gagan
This commit is contained in:
Родитель
4a9b4cf8f0
Коммит
239c76de4c
|
@ -193,6 +193,8 @@ nsHTTPChunkConv::OnDataAvailable (
|
|||
{
|
||||
if (mChunkBufferLength > 0)
|
||||
{
|
||||
mState = CHUNK_STATE_INIT;
|
||||
|
||||
nsCOMPtr<nsIByteArrayInputStream> convertedStreamSup;
|
||||
rv = NS_NewByteArrayInputStream (getter_AddRefs(convertedStreamSup), mChunkBuffer, mChunkBufferLength);
|
||||
if (NS_FAILED (rv))
|
||||
|
@ -209,8 +211,6 @@ nsHTTPChunkConv::OnDataAvailable (
|
|||
|
||||
if (NS_FAILED (rv))
|
||||
return rv;
|
||||
|
||||
mState = CHUNK_STATE_INIT;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче