diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-04 05:07:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:19:10 -0500 |
commit | 8086371dbfe232bc3c3752f9aa9b7d2ad2de45bf (patch) | |
tree | 71808ec6717791d5893df370977de5018524853b /source4 | |
parent | 19f2cd199f56a7fcc1b3534e5867874249dda900 (diff) | |
download | samba-8086371dbfe232bc3c3752f9aa9b7d2ad2de45bf.tar.gz samba-8086371dbfe232bc3c3752f9aa9b7d2ad2de45bf.tar.bz2 samba-8086371dbfe232bc3c3752f9aa9b7d2ad2de45bf.zip |
r8119: fixed two error code returns in the smb server now that we have
torture code that can tell the difference between dos and ntstatus
codes without mapping
(This used to be commit 5521060c089c2181a2f3c7aeabd2f3ba813c6e60)
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; } |