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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user