torture-samlogon: Avoid static zeros
authorVolker Lendecke <vl@samba.org>
Sun, 1 Jan 2017 16:28:36 +0000 (16:28 +0000)
committerRalph Boehme <slow@samba.org>
Tue, 3 Jan 2017 15:04:29 +0000 (16:04 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/torture/rpc/samlogon.c

index bd42ec98085cad7b252c2316ccee4b36fe5f0f9b..d8a1c29d57026c820a624258bc1e47dccac9df12 100644 (file)
@@ -1203,8 +1203,7 @@ static bool test_plaintext(struct samlogon_state *samlogon_state, enum ntlm_brea
        uint8_t user_session_key[16];
        uint8_t lm_key[16];
        uint8_t lm_hash[16];
-       static const uint8_t zeros[8];
-       DATA_BLOB chall = data_blob_talloc(samlogon_state->mem_ctx, zeros, sizeof(zeros));
+       DATA_BLOB chall = data_blob_talloc_zero(samlogon_state->mem_ctx, 8);
        bool lm_good = E_deshash(samlogon_state->password, lm_hash);
 
        ZERO_STRUCT(user_session_key);