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

metze at samba.org metze at samba.org
Fri May 19 13:37:43 GMT 2006


Author: metze
Date: 2006-05-19 13:37:43 +0000 (Fri, 19 May 2006)
New Revision: 15709

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

Log:
- return an error is better than ignoring a non supported request
- zero nttrans output fields before calling the backends

metze
Modified:
   branches/SAMBA_4_0/source/smb_server/smb/nttrans.c


Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/smb/nttrans.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb/nttrans.c	2006-05-19 13:32:17 UTC (rev 15708)
+++ branches/SAMBA_4_0/source/smb_server/smb/nttrans.c	2006-05-19 13:37:43 UTC (rev 15709)
@@ -626,9 +626,11 @@
 	if (param_total > param_count ||
 	    data_total > data_count) {
 		DEBUG(0,("REWRITE: not handling partial nttrans requests!\n"));
+		smbsrv_send_error(req, NT_STATUS_FOOBAR);
 		return;
 	}
 
+	ZERO_STRUCT(trans->out);
 	SMBSRV_CALL_NTVFS_BACKEND(nttrans_backend(req, op));
 }
 



More information about the samba-cvs mailing list