From 3e73b5c73a33d365173a2747f9c111bf7f59303b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Thu, 19 Jan 2017 21:51:41 +0100 Subject: [PATCH] vfs_default: unlock the right file in copy chunk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 BUG: https://bugzilla.samba.org/show_bug.cgi?id=12535 (cherry picked from commit 5059c8e2e3a6159bc2917ddd80d09fab35b39e66) --- source3/modules/vfs_default.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 490c4ab..d8e2c95 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -1520,7 +1520,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; -- 2.7.4