[PATCH 3/5] vfs_default: unlock the right file in copy chunk

Björn Jacke bj at sernet.de
Thu Jan 19 23:01:41 UTC 2017


Signed-off-by: Bjoern Jacke <bj at sernet.de>
---
 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 4e8605b..d4610f7 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;
-- 
2.7.4




More information about the samba-technical mailing list