mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
libcli:smb: Avoid explicit ZERO_STRUCT
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
6b2c6c0e56
commit
39bff1f90b
@ -65,9 +65,8 @@ NTSTATUS smb2_signing_sign_pdu(DATA_BLOB signing_key,
|
||||
|
||||
if (protocol >= PROTOCOL_SMB2_24) {
|
||||
struct aes_cmac_128_context ctx;
|
||||
uint8_t key[AES_BLOCK_SIZE];
|
||||
uint8_t key[AES_BLOCK_SIZE] = {0};
|
||||
|
||||
ZERO_STRUCT(key);
|
||||
memcpy(key, signing_key.data, MIN(signing_key.length, 16));
|
||||
|
||||
aes_cmac_128_init(&ctx, key);
|
||||
@ -137,9 +136,8 @@ NTSTATUS smb2_signing_check_pdu(DATA_BLOB signing_key,
|
||||
|
||||
if (protocol >= PROTOCOL_SMB2_24) {
|
||||
struct aes_cmac_128_context ctx;
|
||||
uint8_t key[AES_BLOCK_SIZE];
|
||||
uint8_t key[AES_BLOCK_SIZE] = {0};
|
||||
|
||||
ZERO_STRUCT(key);
|
||||
memcpy(key, signing_key.data, MIN(signing_key.length, 16));
|
||||
|
||||
aes_cmac_128_init(&ctx, key);
|
||||
|
Loading…
Reference in New Issue
Block a user