mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
auth/credentials: Fix unitialized data
Fixing Red Hat internal covscan report: Field "salt_data.magic" is uninitialized when calling "smb_krb5_create_key_from_string". Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
7f123bbd4e
commit
2cc5b0745a
@ -1475,7 +1475,9 @@ _PUBLIC_ int cli_credentials_get_aes256_key(struct cli_credentials *cred,
|
||||
int ret;
|
||||
const char *password = NULL;
|
||||
krb5_data cleartext_data;
|
||||
krb5_data salt_data;
|
||||
krb5_data salt_data = {
|
||||
.length = 0,
|
||||
};
|
||||
krb5_keyblock key;
|
||||
|
||||
if (cred->password_will_be_nt_hash) {
|
||||
|
Loading…
Reference in New Issue
Block a user