smbd:smb2: fix error code when the header says the request is signed but we don't...
authorMichael Adam <obnox@samba.org>
Wed, 25 Sep 2013 21:18:56 +0000 (23:18 +0200)
committerKarolin Seeger <kseeger@samba.org>
Wed, 20 May 2015 14:34:29 +0000 (16:34 +0200)
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

(cherry picked from commit c3a5fecdc1ff0320f4979fa21aa636aacaac8abe)

source3/smbd/smb2_server.c

index 9c4e18713d8251219d8224ac0ec6768d12973308..a4e149fc0df41f8e932744bc224e4167302f769e 100644 (file)
@@ -1975,7 +1975,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;