[PATCH] s3-acl: fix free of uninitialized pointer

David Disseldorp ddiss at suse.de
Tue Sep 20 19:59:52 MDT 2011


Causing panic using vfs_acl_tdb/xattr.
---
 source3/modules/vfs_acl_common.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c
index 9a1d13b..c08cb1b 100644
--- a/source3/modules/vfs_acl_common.c
+++ b/source3/modules/vfs_acl_common.c
@@ -293,6 +293,7 @@ static NTSTATUS get_nt_acl_internal(vfs_handle_struct *handle,
 		return status;
 	}
 
+	ZERO_STRUCT(blob);
 	status = get_acl_blob(talloc_tos(), handle, fsp, name, &blob);
 	if (!NT_STATUS_IS_OK(status)) {
 		DEBUG(10, ("get_nt_acl_internal: get_acl_blob returned %s\n",
-- 
1.7.1



More information about the samba-technical mailing list