diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/smb_server/sesssetup.c | 2 | ||||
-rw-r--r-- | source4/smb_server/smb_server.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/smb_server/sesssetup.c b/source4/smb_server/sesssetup.c index 6f976f0cc6..c4126b8805 100644 --- a/source4/smb_server/sesssetup.c +++ b/source4/smb_server/sesssetup.c @@ -139,7 +139,7 @@ static NTSTATUS sesssetup_nt1(struct smbsrv_request *req, union smb_sesssetup *s struct auth_context *auth_context; if (sess->nt1.in.user && *sess->nt1.in.user) { - return NT_STATUS_ACCESS_DENIED; + return NT_STATUS_LOGON_FAILURE; } status = make_user_info_anonymous(mem_ctx, &user_info); diff --git a/source4/smb_server/smb_server.c b/source4/smb_server/smb_server.c index f891fd892c..550234e1da 100644 --- a/source4/smb_server/smb_server.c +++ b/source4/smb_server/smb_server.c @@ -528,7 +528,7 @@ static void switch_message(int type, struct smbsrv_request *req) /* see if the vuid is valid */ if ((flags & AS_USER) && !req->session) { - req_reply_error(req, NT_STATUS_DOS(ERRSRV, ERRbaduid)); + req_reply_error(req, NT_STATUS_INVALID_HANDLE); return; } |