diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/smb_server/smb2/receive.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/smb_server/smb2/receive.c b/source4/smb_server/smb2/receive.c index d26be41e6f..26995b71ec 100644 --- a/source4/smb_server/smb2/receive.c +++ b/source4/smb_server/smb2/receive.c @@ -328,8 +328,10 @@ static NTSTATUS smb2srv_reply(struct smb2srv_request *req) smbsrv_terminate_connection(req->smb_conn, "Invalid SMB2 sequence number"); return NT_STATUS_INVALID_PARAMETER; } - req->smb_conn->highest_smb2_seqnum = req->seqnum; - + if (opcode != SMB2_OP_CANCEL) { + req->smb_conn->highest_smb2_seqnum = req->seqnum; + } + req->session = smbsrv_session_find(req->smb_conn, uid, req->request_time); req->tcon = smbsrv_smb2_tcon_find(req->session, tid, req->request_time); |