From: Jeremy Allison Date: Wed, 23 Jun 2021 00:19:08 +0000 (-0700) Subject: s3: VFS: streams_xattr: In streams_xattr_pread() - use the fsp->base_fsp argument... X-Git-Tag: tevent-0.11.0~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbfd4183d64e0173550963269a83732c4c3cfd74;p=thirdparty%2Fsamba.git 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 Reviewed-by: Ralph Boehme --- 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; }