diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-06-18 11:18:05 +0200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-06-19 11:32:01 +1000 |
commit | a8e757ba4ca2a003c114295473fe08a8f80fb2c2 (patch) | |
tree | f77a88daee2d2552d09c7ac3ec3480fd90bbca45 | |
parent | 2627c6c0c2d3d96b3d458092ba8b090447a76a61 (diff) | |
download | samba-a8e757ba4ca2a003c114295473fe08a8f80fb2c2.tar.gz samba-a8e757ba4ca2a003c114295473fe08a8f80fb2c2.tar.bz2 samba-a8e757ba4ca2a003c114295473fe08a8f80fb2c2.zip |
A fix in the ACL code used by both SAMBA 3 and 4
This fixes an uninitialised structure. It has been found through valgrind
in the RAW-ACLs test suite (Bug #6397).
-rw-r--r-- | libcli/security/security_descriptor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/security/security_descriptor.c b/libcli/security/security_descriptor.c index 59d82b821e..f18a326e99 100644 --- a/libcli/security/security_descriptor.c +++ b/libcli/security/security_descriptor.c @@ -373,7 +373,7 @@ static struct security_descriptor *security_descriptor_appendv(struct security_d while ((sidstr = va_arg(ap, const char *))) { struct dom_sid *sid; - struct security_ace *ace = talloc(sd, struct security_ace); + struct security_ace *ace = talloc_zero(sd, struct security_ace); NTSTATUS status; if (ace == NULL) { |