From: Jeremy Allison Date: Wed, 23 Jun 2021 00:14:52 +0000 (-0700) Subject: s3: VFS: streams_xattr: In streams_xattr_pwrite() - use the fsp->base_fsp argument... X-Git-Tag: tevent-0.11.0~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fdbac2c5fe368204267bb3d07bcbee4b6b92ca7;p=thirdparty%2Fsamba.git s3: VFS: streams_xattr: In streams_xattr_pwrite() - 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 feec3847b42..b525ac973f9 100644 --- a/source3/modules/vfs_streams_xattr.c +++ b/source3/modules/vfs_streams_xattr.c @@ -1008,8 +1008,12 @@ static ssize_t streams_xattr_pwrite(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; }