summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2021-06-22 17:19:08 -0700
committerRalph Boehme <slow@samba.org>2021-06-25 15:53:31 +0000
commitfbfd4183d64e0173550963269a83732c4c3cfd74 (patch)
tree446846593beb34fa005a3fd1edb9e95351b293b2 /source3
parentb8190ce3d87be016709f3ddcd8bc763d3418ead9 (diff)
downloadsamba-fbfd4183d64e0173550963269a83732c4c3cfd74.tar.gz
s3: VFS: streams_xattr: In streams_xattr_pread() - use the fsp->base_fsp argument for get_ea_value().
We know it must be valid here. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_streams_xattr.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c
index 4fcfeba3060..f1ce58fd9f2 100644
--- a/source3/modules/vfs_streams_xattr.c
+++ b/source3/modules/vfs_streams_xattr.c
@@ -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;
}