mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r16363: Fix Klocwork ID 981 1652
Volker
This commit is contained in:
parent
e35f901067
commit
ce1d8423ef
@ -86,7 +86,11 @@ NTSTATUS trust_pw_change_and_store_it(struct rpc_pipe_client *cli, TALLOC_CTX *m
|
||||
|
||||
/* Create a random machine account password */
|
||||
str = generate_random_str(DEFAULT_TRUST_ACCOUNT_PASSWORD_LENGTH);
|
||||
new_trust_passwd = talloc_strdup(mem_ctx, str);
|
||||
|
||||
if ((new_trust_passwd = talloc_strdup(mem_ctx, str)) == NULL) {
|
||||
DEBUG(0, ("talloc_strdup failed\n"));
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
E_md4hash(new_trust_passwd, new_trust_passwd_hash);
|
||||
|
||||
|
@ -464,7 +464,10 @@ static BOOL test_plaintext(enum ntlm_break break_which)
|
||||
|
||||
nt_response.length = strlen_w(((void *)nt_response.data))*sizeof(smb_ucs2_t);
|
||||
|
||||
password = strdup_upper(opt_password);
|
||||
if ((password = strdup_upper(opt_password)) == NULL) {
|
||||
DEBUG(0, ("strdup_upper failed!\n"));
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if ((convert_string_allocate(NULL, CH_UNIX,
|
||||
CH_DOS, password,
|
||||
|
Loading…
Reference in New Issue
Block a user