svn commit: samba r2301 - in branches/SAMBA_4_0/source/rpc_server: .

tridge at samba.org tridge at samba.org
Mon Sep 13 01:23:09 GMT 2004


Author: tridge
Date: 2004-09-13 01:23:09 +0000 (Mon, 13 Sep 2004)
New Revision: 2301

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/rpc_server&rev=2301&nolog=1

Log:
add a server side warning when we receive more RPC data than we
expect. It isn't an error as w2k3 does this on its first packet when
NTLM2 signing is used.


Modified:
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c	2004-09-12 11:47:24 UTC (rev 2300)
+++ branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c	2004-09-13 01:23:09 UTC (rev 2301)
@@ -629,6 +629,12 @@
 		return dcesrv_fault(call, DCERPC_FAULT_NDR);
 	}
 
+	if (pull->offset != pull->data_size) {
+		DEBUG(3,("Warning: %d extra bytes in incoming RPC request\n", 
+			 pull->data_size - pull->offset));
+		dump_data(10, pull->data+pull->offset, pull->data_size - pull->offset);
+	}
+
 	call->fault_code = 0;
 
 	/* call the dispatch function */



More information about the samba-cvs mailing list