From: Andrew Bartlett Date: Tue, 7 Aug 2012 04:18:41 +0000 (+1000) Subject: s3-pysmbd: Use talloc_zero() X-Git-Tag: ldb-1.1.10~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e571d5c03ef416bc7f6a1eb66567ec2715da9d21;p=thirdparty%2Fsamba.git s3-pysmbd: Use talloc_zero() This avoids operating on uninitialised data Andrew Bartlett --- diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c index 612304c4e56..8a5bde1090f 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;