Bug 443284 - Firefox 3 crashes when trying to login to an ActivIdentity/ActivClient smartcard using acpkcs211.dll

Inspired by Timeless and Dani Church.
r=kaie/rrelyea, a=mconnor


git-svn-id: svn://10.0.0.236/trunk@254910 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kaie%kuix.de 2008-11-06 06:10:11 +00:00
parent a6678ce204
commit 59906d613f
2 changed files with 3 additions and 3 deletions

View File

@ -724,10 +724,10 @@ ShowProtectedAuthPrompt(PK11SlotInfo* slot, nsIInterfaceRequestor *ir)
switch (rv)
{
case SECSuccess:
protAuthRetVal = PK11_PW_AUTHENTICATED;
protAuthRetVal = ToNewCString(nsDependentCString(PK11_PW_AUTHENTICATED));
break;
case SECWouldBlock:
protAuthRetVal = PK11_PW_RETRY;
protAuthRetVal = ToNewCString(nsDependentCString(PK11_PW_RETRY));
break;
default:
protAuthRetVal = nsnull;

View File

@ -158,7 +158,7 @@ void nsProtectedAuthThread::Run(void)
// it is harmless here
mLoginResult = PK11_CheckUserPassword(mSlot, 0);
nsIObserver *observer = nsnull;
nsCOMPtr<nsIObserver> observer;
PR_Lock(mMutex);