summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-26 11:25:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:17 -0500
commit5a830d062676eb4cc1a20773b461b5a1073d1d33 (patch)
treedc12d0dbb592d04493c1d95ec29ec2743f89beb9 /source4/smb_server
parent5d45a332d547cdda0759014cc833c4015b2cfad4 (diff)
downloadsamba-5a830d062676eb4cc1a20773b461b5a1073d1d33.tar.gz
samba-5a830d062676eb4cc1a20773b461b5a1073d1d33.tar.bz2
samba-5a830d062676eb4cc1a20773b461b5a1073d1d33.zip
r2658: fixed a couple of error codes found with RAW-CONTEXT
(This used to be commit 18632ec56524f294655d881406c10beb659ddee1)
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb_server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/smb_server/smb_server.c b/source4/smb_server/smb_server.c
index c3c5a6c456..883be01b41 100644
--- a/source4/smb_server/smb_server.c
+++ b/source4/smb_server/smb_server.c
@@ -473,14 +473,14 @@ static void switch_message(int type, struct smbsrv_request *req)
/* does this protocol need a valid tree connection? */
if ((flags & AS_USER) && !req->tcon) {
- req_reply_error(req, NT_STATUS_NETWORK_NAME_DELETED);
+ req_reply_error(req, NT_STATUS_INVALID_HANDLE);
return;
}
/* see if the vuid is valid */
if ((flags & AS_USER) && !req->session) {
if (!(flags & AS_GUEST)) {
- req_reply_error(req, NT_STATUS_DOS(ERRSRV, ERRbaduid));
+ req_reply_error(req, NT_STATUS_INVALID_HANDLE);
return;
}
}