s3:smb2 fix oplock break
authorChristian Ambach <ambi@samba.org>
Fri, 2 Mar 2012 21:37:47 +0000 (13:37 -0800)
committerStefan Metzmacher <metze@samba.org>
Thu, 10 May 2012 16:42:04 +0000 (18:42 +0200)
we have to send the correct fileidentifier to the client

source3/smbd/smb2_break.c

index 13ebf1ba7782bca70d83a9cde4fb42de4249dfe9..79d8a3af1d0d2db521d6611196ab7e20369abf1a 100644 (file)
@@ -267,8 +267,8 @@ void send_break_message_smb2(files_struct *fsp, int level)
                (unsigned int)smb2_oplock_level ));
 
        status = smbd_smb2_send_oplock_break(fsp->conn->sconn,
-                                       (uint64_t)fsp->fnum,
-                                       (uint64_t)fsp->fnum,
+                                       (uint64_t)fsp->smbXsrv->global->open_persistent_id,
+                                       (uint64_t)fsp->smbXsrv->global->open_volatile_id,
                                        smb2_oplock_level);
        if (!NT_STATUS_IS_OK(status)) {
                smbd_server_connection_terminate(fsp->conn->sconn,