From d7ce33ed8430136ec2b32db240793ccc1946c4b2 Mon Sep 17 00:00:00 2001 From: "darin%meer.net" Date: Wed, 19 Nov 2003 05:00:43 +0000 Subject: [PATCH] fix two "might be used uninitialized" warnings from NTLM patch, bug=224653. --- netwerk/protocol/http/src/nsHttpNTLMAuth.cpp | 1 + security/manager/ssl/src/nsNTLMAuthModule.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;