mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3:smbd:smb2: add check for session_status for compound requests
This commit is contained in:
parent
4384485f82
commit
27d38b5c27
@ -2002,13 +2002,13 @@ NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req)
|
||||
/*
|
||||
* This check is mostly for giving the correct error code
|
||||
* for compounded requests.
|
||||
*
|
||||
* TODO: we may need to move this after the session
|
||||
* and tcon checks.
|
||||
*/
|
||||
if (!NT_STATUS_IS_OK(req->next_status)) {
|
||||
return smbd_smb2_request_error(req, req->next_status);
|
||||
}
|
||||
if (!NT_STATUS_IS_OK(session_status)) {
|
||||
return smbd_smb2_request_error(req, NT_STATUS_INVALID_PARAMETER);
|
||||
}
|
||||
} else {
|
||||
req->compat_chain_fsp = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user