From b0207c001a0013b002a94fd62eee2ea890eec8b3 Mon Sep 17 00:00:00 2001 From: "javi%netscape.com" Date: Wed, 23 Aug 2000 01:24:17 +0000 Subject: [PATCH] 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 --- mozilla/extensions/psm-glue/src/nsPSMComponent.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/extensions/psm-glue/src/nsPSMComponent.cpp b/mozilla/extensions/psm-glue/src/nsPSMComponent.cpp index 14c60e616eb..09a7267d5df 100644 --- a/mozilla/extensions/psm-glue/src/nsPSMComponent.cpp +++ b/mozilla/extensions/psm-glue/src/nsPSMComponent.cpp @@ -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;