From: Björn Jacke Date: Thu, 19 Jan 2017 20:51:41 +0000 (+0100) Subject: vfs_default: unlock the right file in copy chunk X-Git-Tag: talloc-2.1.9~355 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5059c8e2e3a6159bc2917ddd80d09fab35b39e66;p=thirdparty%2Fsamba.git vfs_default: unlock the right file in copy chunk Signed-off-by: Bjoern Jacke Reviewed-by: David Disseldorp Autobuild-User(master): Björn Jacke Autobuild-Date(master): Sat Jan 21 17:00:54 CET 2017 on sn-devel-144 --- diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 4e8605bdaee..d4610f74c2e 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -1710,7 +1710,7 @@ static struct tevent_req *vfswrap_copy_chunk_send(struct vfs_handle_struct *hand saved_errno = errno; } - SMB_VFS_STRICT_UNLOCK(src_fsp->conn, src_fsp, &lck); + SMB_VFS_STRICT_UNLOCK(dest_fsp->conn, dest_fsp, &lck); if (ret == -1) { errno = saved_errno;