summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-25 23:18:56 +0200
committerStefan Metzmacher <metze@samba.org>2013-10-02 22:07:44 +0200
commitc3a5fecdc1ff0320f4979fa21aa636aacaac8abe (patch)
treea2a28deeb152a37d5c5b2c58237b348147b5afcb
parent4a7b792bc6d463a3aa4e1150a271ed6b929276cc (diff)
downloadsamba-c3a5fecdc1ff0320f4979fa21aa636aacaac8abe.tar.gz
samba-c3a5fecdc1ff0320f4979fa21aa636aacaac8abe.tar.bz2
samba-c3a5fecdc1ff0320f4979fa21aa636aacaac8abe.zip
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
-rw-r--r--source3/smbd/smb2_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index cf5e37e5a4..1bebee1073 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -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;