diff options
author | Michael Adam <obnox@samba.org> | 2012-09-22 04:06:27 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2012-09-22 10:18:57 +0200 |
commit | 27d38b5c27bd96d5124c175d946718bf0836b8f4 (patch) | |
tree | 577b6a160a9354b4f21747ddebf85d34d87feee2 /source3 | |
parent | 4384485f82aac109bf4c4c31075e313e54b4c076 (diff) | |
download | samba-27d38b5c27bd96d5124c175d946718bf0836b8f4.tar.gz samba-27d38b5c27bd96d5124c175d946718bf0836b8f4.tar.bz2 samba-27d38b5c27bd96d5124c175d946718bf0836b8f4.zip |
s3:smbd:smb2: add check for session_status for compound requests
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/smb2_server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index bf7f437beb..8443ed775a 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -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; } |