From 0f88c2ca2125647c86124eff52151a25c828544c Mon Sep 17 00:00:00 2001 From: "gavin%gavinsharp.com" Date: Fri, 28 Apr 2006 19:47:44 +0000 Subject: [PATCH] Bug 320349: Crash on authentication to the proxy server (possibly MS ISA server), patch by John Found , r+sr=darin, a=timr git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@195678 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/auth/nsAuthSSPI.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mozilla/extensions/auth/nsAuthSSPI.cpp b/mozilla/extensions/auth/nsAuthSSPI.cpp index 7dea1d228f9..9849923a0fb 100644 --- a/mozilla/extensions/auth/nsAuthSSPI.cpp +++ b/mozilla/extensions/auth/nsAuthSSPI.cpp @@ -290,6 +290,7 @@ nsAuthSSPI::GetNextToken(const void *inToken, PRUint32 *outTokenLen) { SECURITY_STATUS rc; + TimeStamp ignored; DWORD ctxAttr, ctxReq = 0; CtxtHandle *ctxIn; @@ -354,11 +355,11 @@ nsAuthSSPI::GetNextToken(const void *inToken, &mCtxt, &obd, &ctxAttr, - NULL); + &ignored); if (rc == SEC_I_CONTINUE_NEEDED || rc == SEC_E_OK) { - if (!ob.cbBuffer) { - nsMemory::Free(ob.pvBuffer); - ob.pvBuffer = NULL; + if (!ob.cbBuffer) { + nsMemory::Free(ob.pvBuffer); + ob.pvBuffer = NULL; } *outToken = ob.pvBuffer; *outTokenLen = ob.cbBuffer;