Turns out this last fix is needed to fully fix Bug#45866

This commit is contained in:
javi%netscape.com 2000-08-23 01:24:17 +00:00
Родитель c4cbd8b7eb
Коммит d0264fc690
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -650,8 +650,10 @@ const PRInt32 kDefaultCertAllocLength = 2048;
NS_IMETHODIMP
CertDownloader::OnStartRequest(nsIChannel* channel, nsISupports* context)
{
channel->GetContentLength(&mContentLength);
if (mContentLength == -1)
nsresult rv;
rv = channel->GetContentLength(&mContentLength);
if (rv != NS_OK || mContentLength == -1)
mContentLength = kDefaultCertAllocLength;
mBufferOffset = 0;