From e571d5c03ef416bc7f6a1eb66567ec2715da9d21 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 7 Aug 2012 14:18:41 +1000 Subject: s3-pysmbd: Use talloc_zero() This avoids operating on uninitialised data Andrew Bartlett --- source3/smbd/pysmbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/pysmbd.c') diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c index 612304c4e5..8a5bde1090 100644 --- a/source3/smbd/pysmbd.c +++ b/source3/smbd/pysmbd.c @@ -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; -- cgit