From: Michael Adam Date: Sat, 22 Sep 2012 02:06:27 +0000 (+0200) Subject: s3:smbd:smb2: add check for session_status for compound requests X-Git-Tag: talloc-2.0.8~227 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27d38b5c27bd96d5124c175d946718bf0836b8f4;p=thirdparty%2Fsamba.git s3:smbd:smb2: add check for session_status for compound requests --- diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index bf7f437bebd..8443ed775a8 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; }