svn commit: samba r7523 - in branches/SAMBA_4_0/source/smb_server: .
tridge at samba.org
tridge at samba.org
Mon Jun 13 07:11:30 GMT 2005
Author: tridge
Date: 2005-06-13 07:11:29 +0000 (Mon, 13 Jun 2005)
New Revision: 7523
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7523
Log:
blergh
the error code for an invalid tid depends on the command
Modified:
branches/SAMBA_4_0/source/smb_server/smb_server.c
Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/smb_server.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb_server.c 2005-06-13 06:52:48 UTC (rev 7522)
+++ branches/SAMBA_4_0/source/smb_server/smb_server.c 2005-06-13 07:11:29 UTC (rev 7523)
@@ -511,7 +511,12 @@
/* does this protocol need a valid tree connection? */
if ((flags & AS_USER) && !req->tcon) {
- req_reply_error(req, NT_STATUS_DOS(ERRSRV, ERRinvnid));
+ if (type == SMBntcreateX) {
+ /* amazingly, the error code depends on the command */
+ req_reply_error(req, NT_STATUS_DOS(ERRSRV, ERRinvnid));
+ } else {
+ req_reply_error(req, NT_STATUS_INVALID_HANDLE);
+ }
return;
}
More information about the samba-cvs
mailing list