Skip to content

Commit

Permalink
s3:smb2_sesssetup: reject SMB2_SESSION_FLAG_BINDING requests
Browse files Browse the repository at this point in the history
metze

Autobuild-User(master): Stefan Metzmacher <[email protected]>
Autobuild-Date(master): Thu Jul 26 02:08:56 CEST 2012 on sn-devel-104
  • Loading branch information
metze-samba committed Jul 26, 2012
1 parent 46e08eb commit df08929
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions source3/smbd/smb2_sesssetup.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,19 @@ static struct tevent_req *smbd_smb2_session_setup_send(TALLOC_CTX *mem_ctx,
state->in_previous_session_id = in_previous_session_id;
state->in_security_buffer = in_security_buffer;

if (in_flags & SMB2_SESSION_FLAG_BINDING) {
if (smb2req->sconn->conn->protocol < PROTOCOL_SMB2_22) {
tevent_req_nterror(req, NT_STATUS_REQUEST_NOT_ACCEPTED);
return tevent_req_post(req, ev);
}

/*
* We do not support multi channel.
*/
tevent_req_nterror(req, NT_STATUS_NOT_SUPPORTED);
return tevent_req_post(req, ev);
}

talloc_set_destructor(state, smbd_smb2_session_setup_state_destructor);

if (state->in_session_id == 0) {
Expand Down

0 comments on commit df08929

Please sign in to comment.