summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-06-18 11:18:05 +0200
committerAndrew Bartlett <abartlet@samba.org>2009-06-19 11:32:01 +1000
commita8e757ba4ca2a003c114295473fe08a8f80fb2c2 (patch)
treef77a88daee2d2552d09c7ac3ec3480fd90bbca45
parent2627c6c0c2d3d96b3d458092ba8b090447a76a61 (diff)
downloadsamba-a8e757ba4ca2a003c114295473fe08a8f80fb2c2.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/security/security_descriptor.c b/libcli/security/security_descriptor.c
index 59d82b821e2..f18a326e997 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) {