diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-08-07 14:18:41 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-08-07 14:57:33 +1000 |
commit | e571d5c03ef416bc7f6a1eb66567ec2715da9d21 (patch) | |
tree | b74862d408448a8ecb413ef4a88a1cb8f751b6c6 | |
parent | e658421fe1f724da0e627c0ae407804993c2521e (diff) | |
download | samba-e571d5c03ef416bc7f6a1eb66567ec2715da9d21.tar.gz samba-e571d5c03ef416bc7f6a1eb66567ec2715da9d21.tar.bz2 samba-e571d5c03ef416bc7f6a1eb66567ec2715da9d21.zip |
s3-pysmbd: Use talloc_zero()
This avoids operating on uninitialised data
Andrew Bartlett
-rw-r--r-- | source3/smbd/pysmbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |