1
0
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:
Andrew Bartlett 2012-08-07 14:18:41 +10:00
parent e658421fe1
commit e571d5c03e

View File

@ -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;