mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3-pysmbd: Use talloc_zero()
This avoids operating on uninitialised data Andrew Bartlett
This commit is contained in:
parent
e658421fe1
commit
e571d5c03e
@ -101,7 +101,7 @@ static NTSTATUS set_nt_acl_no_snum(const char *fname,
|
||||
|
||||
smbd_vfs_init(conn);
|
||||
|
||||
fsp = talloc(frame, struct files_struct);
|
||||
fsp = talloc_zero(frame, struct files_struct);
|
||||
if (fsp == NULL) {
|
||||
TALLOC_FREE(frame);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user