mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
smbd:smb2: fix error code when the header says the request is signed but we don't have a sesseion
I.e. when the request is a session setup. We replied with ACCESS_DENIED, but windows expects USER_SESSION_DELETED Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Oct 2 22:07:44 CEST 2013 on sn-devel-104
This commit is contained in:
parent
4a7b792bc6
commit
c3a5fecdc1
@ -1998,7 +1998,7 @@ NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req)
|
||||
|
||||
if (x == NULL) {
|
||||
return smbd_smb2_request_error(
|
||||
req, NT_STATUS_ACCESS_DENIED);
|
||||
req, NT_STATUS_USER_SESSION_DELETED);
|
||||
}
|
||||
|
||||
signing_key = x->global->channels[0].signing_key;
|
||||
|
Loading…
Reference in New Issue
Block a user