1
0
mirror of https://github.com/samba-team/samba.git synced 2025-09-09 01:44:21 +03:00

Ensure we can never return an uninitialized EA list.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@suse.de>
This commit is contained in:
Jeremy Allison
2013-03-29 10:07:20 -07:00
committed by David Disseldorp
parent 50e0060091
commit 1e8bcce52f

View File

@@ -323,6 +323,7 @@ static NTSTATUS get_ea_list_from_file_path(TALLOC_CTX *mem_ctx, connection_struc
NTSTATUS status;
*pea_total_len = 0;
*ea_list = NULL;
status = get_ea_names_from_file(talloc_tos(), conn, fsp, fname,
&names, &num_names);
@@ -516,7 +517,7 @@ static unsigned int estimate_ea_size(connection_struct *conn, files_struct *fsp,
{
size_t total_ea_len = 0;
TALLOC_CTX *mem_ctx;
struct ea_list *ea_list;
struct ea_list *ea_list = NULL;
if (!lp_ea_support(SNUM(conn))) {
return 0;