]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libsmb: Fix a bug in conversion of ea list to ea array.
authorAnubhav Rakshit <anubhav.rakshit@gmail.com>
Fri, 26 Jun 2015 06:54:23 +0000 (12:24 +0530)
committerMichael Adam <obnox@samba.org>
Fri, 26 Jun 2015 17:32:19 +0000 (19:32 +0200)
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 <anubhav.rakshit@gmail.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/libsmb/cli_smb2_fnum.c

index 21c03408893b7ef99706e937d3ba2a7104061bf5..816ad1374a30928953a04f5484f8e0436e4d809a 100644 (file)
@@ -2194,7 +2194,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;
        }