Bug 320349: Crash on authentication to the proxy server (possibly MS ISA server), patch by John Found <johnfound@abv.bg>, 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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user