durable close ... get_existing_share_mode_lock
authorStefan Metzmacher <metze@samba.org>
Wed, 22 Feb 2012 10:25:19 +0000 (11:25 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:41:56 +0000 (18:41 +0200)
source3/smbd/close.c

index 7042379e7914f60e3a83790425ab7bf9e3dc559a..03ee59bc4f40032010e7dc0960b1e0e121a85fef 100644 (file)
@@ -682,7 +682,7 @@ static NTSTATUS close_normal_file(struct smb_request *req, files_struct *fsp,
        if (fsp->smbXsrv->global->durable && close_type == SHUTDOWN_CLOSE) {
                struct share_mode_lock *lck;
 
-               lck = get_share_mode_lock(talloc_tos(), fsp->file_id);
+               lck = get_existing_share_mode_lock(talloc_tos(), fsp->file_id);
                if (lck != NULL) {
                        lck->data->share_modes[0].pid.pid = UINT64_MAX;
                        lck->data->share_modes[0].pid.task_id = UINT32_MAX;