From 185815a6472a7a09602b3c51198e20257241dfa7 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 24 Jan 2010 13:46:59 +0100 Subject: s3: Remove some calls to memset -- reduces text size by some bytes for me --- source3/libsmb/ntlmssp.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'source3/libsmb') 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); -- cgit