From 77e2fd01a9aa781c123308bf0e8145babd4edbf7 Mon Sep 17 00:00:00 2001 From: Anubhav Rakshit Date: Fri, 26 Jun 2015 12:24:23 +0530 Subject: [PATCH] s3:libsmb: Fix a bug in conversion of ea list to ea array. Bug 11361 - Reading of EA's (Extended Attributes) fails using SMB2 and above protocols Tested against Win2k12r2 server. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11361 Signed-off-by: Anubhav Rakshit Reviewed-by: Andreas Schneider Reviewed-by: Michael Adam (cherry picked from commit 5af2e3eed2ac309e2491fc54e03e7b04c8b118fb) --- source3/libsmb/cli_smb2_fnum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c index aeade88..d71c6c5 100644 --- a/source3/libsmb/cli_smb2_fnum.c +++ b/source3/libsmb/cli_smb2_fnum.c @@ -2027,7 +2027,7 @@ NTSTATUS cli_smb2_get_ea_list_path(struct cli_state *cli, } ea_count = 0; for (eal = ea_list; eal; eal = eal->next) { - (*pea_array)[ea_count++] = ea_list->ea; + (*pea_array)[ea_count++] = eal->ea; } *pnum_eas = ea_count; } -- 2.4.3.573.g4eafbef