summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-06-12 12:24:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:02 -0500
commit76d3439c4b23d58e0ee57f8f3394c28ed343f5bc (patch)
treeb2c7773bebadbbf4df04ac725562610a015663ca /source4
parente9fa8f7cce55afe8d9a1b38ed3bbd4fd071b6ef4 (diff)
downloadsamba-76d3439c4b23d58e0ee57f8f3394c28ed343f5bc.tar.gz
samba-76d3439c4b23d58e0ee57f8f3394c28ed343f5bc.tar.bz2
samba-76d3439c4b23d58e0ee57f8f3394c28ed343f5bc.zip
r7510: fixed error code for using a bad tid.
amazingly, I have seen w2k do a session setup followed by an immediate attempted opening of \netlogon, with no tconx to ipc$ first. So this error code can matter. (This used to be commit 79112d81cb9ea3fc7e94be1af282ab4247170532)
Diffstat (limited to 'source4')
-rw-r--r--source4/smb_server/smb_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smb_server/smb_server.c b/source4/smb_server/smb_server.c
index 6261621886..86aa46ba9a 100644
--- a/source4/smb_server/smb_server.c
+++ b/source4/smb_server/smb_server.c
@@ -511,7 +511,7 @@ 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_INVALID_HANDLE);
+ req_reply_error(req, NT_STATUS_DOS(ERRSRV, ERRinvnid));
return;
}