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

git-svn-id: svn://10.0.0.236/trunk@76933 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
javi%netscape.com
2000-08-23 01:24:17 +00:00
parent 4d92d67952
commit b0207c001a

View File

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