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:
ruslan%netscape.com 2000-06-10 02:09:43 +00:00
Родитель 4a9b4cf8f0
Коммит 239c76de4c
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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
{