]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: VFS: streams_xattr: In streams_xattr_pread() - use the fsp->base_fsp argument...
authorJeremy Allison <jra@samba.org>
Wed, 23 Jun 2021 00:19:08 +0000 (17:19 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 25 Jun 2021 15:53:31 +0000 (15:53 +0000)
We know it must be valid here.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_streams_xattr.c

index 4fcfeba30606e3ae9e17b411ff111fb921ec4ee4..f1ce58fd9f22d3f4ca460d1e56860f5d6a1f25a5 100644 (file)
@@ -1071,8 +1071,12 @@ static ssize_t streams_xattr_pread(vfs_handle_struct *handle,
                return -1;
        }
 
-       status = get_ea_value(talloc_tos(), handle->conn, NULL,
-                             smb_fname_base, sio->xattr_name, &ea);
+       status = get_ea_value(talloc_tos(),
+                             handle->conn,
+                             fsp->base_fsp,
+                             NULL,
+                             sio->xattr_name,
+                             &ea);
        if (!NT_STATUS_IS_OK(status)) {
                return -1;
        }