mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3: Make use of talloc_array in pdb_set_plaintext_passwd()
This commit is contained in:
parent
7ba006430f
commit
e7290255f5
@ -1051,8 +1051,9 @@ bool pdb_set_plaintext_passwd(struct samu *sampass, const char *plaintext)
|
||||
/*
|
||||
* Ensure we have space for the needed history.
|
||||
*/
|
||||
uchar *new_history = (uchar *)TALLOC(
|
||||
sampass, pwHistLen*PW_HISTORY_ENTRY_LEN);
|
||||
uchar *new_history = talloc_array(
|
||||
sampass, uchar,
|
||||
pwHistLen*PW_HISTORY_ENTRY_LEN);
|
||||
if (!new_history) {
|
||||
return False;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user