From c3a5fecdc1ff0320f4979fa21aa636aacaac8abe Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 25 Sep 2013 23:18:56 +0200 Subject: [PATCH] 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 Reviewed-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Wed Oct 2 22:07:44 CEST 2013 on sn-devel-104 --- source3/smbd/smb2_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index cf5e37e5a41..1bebee10731 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;