mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
s3:libsmb: Zero memory in trust_pw_change()
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
4df98ed05d
commit
988077c336
@ -311,6 +311,7 @@ NTSTATUS trust_pw_change(struct netlogon_creds_cli_context *context,
|
||||
TALLOC_FREE(frame);
|
||||
return status;
|
||||
}
|
||||
talloc_keep_secret(new_trust_pw_blob.data);
|
||||
|
||||
switch (sec_channel_type) {
|
||||
|
||||
@ -365,7 +366,7 @@ NTSTATUS trust_pw_change(struct netlogon_creds_cli_context *context,
|
||||
* We use the password that's already persistent in
|
||||
* our database in order to handle failures.
|
||||
*/
|
||||
data_blob_clear_free(&new_trust_pw_blob);
|
||||
data_blob_free(&new_trust_pw_blob);
|
||||
new_trust_pw_blob = info->next_change->password->cleartext_blob;
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user