git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e658421
)
s3-pysmbd: Use talloc_zero()
author
Andrew Bartlett
<abartlet@samba.org>
Tue, 7 Aug 2012 04:18:41 +0000
(14:18 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Tue, 7 Aug 2012 04:57:33 +0000
(14:57 +1000)
This avoids operating on uninitialised data
Andrew Bartlett
source3/smbd/pysmbd.c
patch
|
blob
|
history
diff --git
a/source3/smbd/pysmbd.c
b/source3/smbd/pysmbd.c
index 612304c4e56d75a2e5b448d630dacf2b9243bcc6..8a5bde1090f3bbc529e794895dab618646a1685c 100644
(file)
--- 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;