diff --git a/netwerk/protocol/http/src/nsHttpNTLMAuth.cpp b/netwerk/protocol/http/src/nsHttpNTLMAuth.cpp index 83b5bdf47ebe..b04cea9f7d84 100644 --- a/netwerk/protocol/http/src/nsHttpNTLMAuth.cpp +++ b/netwerk/protocol/http/src/nsHttpNTLMAuth.cpp @@ -110,6 +110,7 @@ nsHttpNTLMAuth::GenerateCredentials(nsIHttpChannel *httpChannel, if (NS_FAILED(rv)) return rv; + inBufLen = 0; inBuf = nsnull; } else { diff --git a/security/manager/ssl/src/nsNTLMAuthModule.cpp b/security/manager/ssl/src/nsNTLMAuthModule.cpp index 2a51e6c3470d..b3e8afe7aab6 100644 --- a/security/manager/ssl/src/nsNTLMAuthModule.cpp +++ b/security/manager/ssl/src/nsNTLMAuthModule.cpp @@ -768,7 +768,7 @@ des_encrypt(const PRUint8 *key, const PRUint8 *src, PRUint8 *hash) PK11SlotInfo *slot = nsnull; PK11SymKey *symkey = nsnull; PK11Context *ctxt = nsnull; - SECItem keyItem, *param; + SECItem keyItem, *param = nsnull; SECStatus rv; unsigned int n;