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)
committerStefan Metzmacher <metze@samba.org>
Wed, 2 Oct 2013 20:07:44 +0000 (22:07 +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

source3/smbd/smb2_server.c

index cf5e37e5a4157154a12f0d6284fcd84b0a6631a7..1bebee10731694c8d60c95b53eb29890d0e1fdc8 100644 (file)
@@ -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;