svn commit: samba r11640 - in branches/SAMBA_4_0/source/smb_server: .

metze at samba.org metze at samba.org
Thu Nov 10 12:59:16 GMT 2005


Author: metze
Date: 2005-11-10 12:59:15 +0000 (Thu, 10 Nov 2005)
New Revision: 11640

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11640

Log:
just a nicer format, and make adding more special cases easier

metze
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-11-10 12:35:12 UTC (rev 11639)
+++ branches/SAMBA_4_0/source/smb_server/smb_server.c	2005-11-10 12:59:15 UTC (rev 11640)
@@ -450,11 +450,14 @@
 
 	/* does this protocol need a valid tree connection? */
 	if ((flags & AS_USER) && !req->tcon) {
-		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);
+		/* amazingly, the error code depends on the command */
+		switch (type) {
+			case SMBntcreateX:
+				req_reply_error(req, NT_STATUS_DOS(ERRSRV, ERRinvnid));
+				break;
+			default:
+				req_reply_error(req, NT_STATUS_INVALID_HANDLE);
+				break;
 		}
 		return;
 	}



More information about the samba-cvs mailing list