mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
libcli:auth: Keep passwords from convert_string_talloc() secret
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
03a50d8f7d
commit
6edf88f5c4
@ -975,6 +975,7 @@ bool decode_pw_buffer(TALLOC_CTX *ctx,
|
||||
DBG_ERR("Failed to convert incoming password\n");
|
||||
return false;
|
||||
}
|
||||
talloc_keep_secret(*pp_new_pwrd);
|
||||
|
||||
#ifdef DEBUG_PASSWORD
|
||||
DEBUG(100,("decode_pw_buffer: new_pwrd: "));
|
||||
@ -1067,6 +1068,7 @@ bool decode_pwd_string_from_buffer514(TALLOC_CTX *mem_ctx,
|
||||
if (!ok) {
|
||||
return false;
|
||||
}
|
||||
talloc_keep_secret(decoded_password->data);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user