summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-09-04 09:51:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:43:23 -0500
commit6655e1e997fa96408ce257f1c96773db4551f69f (patch)
tree485a5b6dd5aa1696d74d84c9250573b80da5d6d5 /source3/libsmb
parentf5906de76db2ba8c95af3da34a283de3da21ec0f (diff)
downloadsamba-6655e1e997fa96408ce257f1c96773db4551f69f.tar.gz
samba-6655e1e997fa96408ce257f1c96773db4551f69f.tar.bz2
samba-6655e1e997fa96408ce257f1c96773db4551f69f.zip
r18029: More C++ stuff
(This used to be commit 089b51e28cc5e3674e4edf5464c7a15673c5ec0f)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/ntlm_check.c2
-rw-r--r--source3/libsmb/ntlmssp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/ntlm_check.c b/source3/libsmb/ntlm_check.c
index 212bc19767..e1fc92e344 100644
--- a/source3/libsmb/ntlm_check.c
+++ b/source3/libsmb/ntlm_check.c
@@ -183,7 +183,7 @@ NTSTATUS ntlm_password_check(TALLOC_CTX *mem_ctx,
DATA_BLOB *user_sess_key,
DATA_BLOB *lm_sess_key)
{
- static const unsigned char zeros[8];
+ static const unsigned char zeros[8] = { 0, };
if (nt_pw == NULL) {
DEBUG(3,("ntlm_password_check: NO NT password stored for user %s.\n",
username));
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index d017bdb76c..c1852a1187 100644
--- a/source3/libsmb/ntlmssp.c
+++ b/source3/libsmb/ntlmssp.c
@@ -1062,7 +1062,7 @@ static NTSTATUS ntlmssp_client_challenge(struct ntlmssp_state *ntlmssp_state,
}
if (!ntlmssp_state->nt_hash || !ntlmssp_state->lm_hash) {
- static const uchar zeros[16];
+ static const uchar zeros[16] = { 0, };
/* do nothing - blobs are zero length */
/* session key is all zeros */