summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-24 13:46:59 +0100
committerVolker Lendecke <vl@samba.org>2010-01-24 14:52:33 +0100
commit185815a6472a7a09602b3c51198e20257241dfa7 (patch)
treee190f9f5fbd59191ba263ba455c190eb04a2e744 /source3/libsmb
parent96b12e0d59b27913e915ea28b3edaa7023b765c5 (diff)
downloadsamba-185815a6472a7a09602b3c51198e20257241dfa7.tar.gz
samba-185815a6472a7a09602b3c51198e20257241dfa7.tar.bz2
samba-185815a6472a7a09602b3c51198e20257241dfa7.zip
s3: Remove some calls to memset -- reduces text size by some bytes for me
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/ntlmssp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index 7fffe7cea3..1d20ee5026 100644
--- a/source3/libsmb/ntlmssp.c
+++ b/source3/libsmb/ntlmssp.c
@@ -803,8 +803,7 @@ static NTSTATUS ntlmssp_server_auth(struct ntlmssp_state *ntlmssp_state,
session_key.data);
DEBUG(10,("ntlmssp_server_auth: Created NTLM session key.\n"));
} else {
- uint8 zeros[24];
- ZERO_STRUCT(zeros);
+ static const uint8 zeros[24] = {0, };
session_key = data_blob_talloc(
ntlmssp_state, NULL, 16);
if (session_key.data == NULL) {
@@ -1062,11 +1061,9 @@ static NTSTATUS ntlmssp_client_challenge(struct ntlmssp_state *ntlmssp_state,
}
if (!ntlmssp_state->nt_hash || !ntlmssp_state->lm_hash) {
- uchar zeros[16];
+ static const uint8_t zeros[16] = {0, };
/* do nothing - blobs are zero length */
- ZERO_STRUCT(zeros);
-
/* session key is all zeros */
session_key = data_blob_talloc(ntlmssp_state, zeros, 16);