Bug 533529 - Use credentials instead of context for sspi init check. r-bz.
authorJim Mathies <jmathies@mozilla.com>
Wed, 16 Dec 2009 14:11:51 -0600
changeset 36295 c1aaf10cf807884f43f73c95032673f948e62a60
parent 36294 5fdbc534a2534d4e9e68a4ac1536cf4545c81d56
child 36296 8cd8049eabb0467ed50b9c717f68ccc78a1372d9
push id10765
push userjmathies@mozilla.com
push dateWed, 16 Dec 2009 20:12:12 +0000
treeherdermozilla-central@c1aaf10cf807 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs533529
milestone1.9.3a1pre
Bug 533529 - Use credentials instead of context for sspi init check. r-bz.
extensions/auth/nsAuthSSPI.cpp
--- a/extensions/auth/nsAuthSSPI.cpp
+++ b/extensions/auth/nsAuthSSPI.cpp
@@ -310,17 +310,17 @@ nsAuthSSPI::GetNextToken(const void *inT
 
     DWORD ctxAttr, ctxReq = 0;
     CtxtHandle *ctxIn;
     SecBufferDesc ibd, obd;
     SecBuffer ib, ob;
 
     LOG(("entering nsAuthSSPI::GetNextToken()\n"));
 
-    if (!mCtxt.dwLower && !mCtxt.dwUpper) {
+    if (!mCred.dwLower && !mCred.dwUpper) {
         LOG(("nsAuthSSPI::GetNextToken(), not initialized. exiting."));
         return NS_ERROR_NOT_INITIALIZED;
     }
 
     if (mServiceFlags & REQ_DELEGATE)
         ctxReq |= ISC_REQ_DELEGATE;
     if (mServiceFlags & REQ_MUTUAL_AUTH)
         ctxReq |= ISC_REQ_MUTUAL_AUTH;