git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6786a77
)
Ensure we can never return an uninitialized EA list.
author
Jeremy Allison
<jra@samba.org>
Fri, 29 Mar 2013 17:07:20 +0000
(10:07 -0700)
committer
Karolin Seeger
<kseeger@samba.org>
Mon, 8 Apr 2013 06:45:49 +0000
(08:45 +0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@suse.de>
source3/smbd/trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/trans2.c
b/source3/smbd/trans2.c
index 062af2583304711bb4815bde35f39df455db3cd6..7eb9ecfa80cdd9b4117d8fcc3869c0a7e2f80472 100644
(file)
--- a/
source3/smbd/trans2.c
+++ b/
source3/smbd/trans2.c
@@
-322,6
+322,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);
@@
-515,7
+516,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;