svn commit: samba r9923 - in branches/tmp/RPCREWRITE/source/rpc_client: .

jra at samba.org jra at samba.org
Thu Sep 1 22:27:36 GMT 2005


Author: jra
Date: 2005-09-01 22:27:36 +0000 (Thu, 01 Sep 2005)
New Revision: 9923

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

Log:
Binds and simple non-authenticated RPC calls are now working.
Jeremy.

Modified:
   branches/tmp/RPCREWRITE/source/rpc_client/cli_pipe.c


Changeset:
Modified: branches/tmp/RPCREWRITE/source/rpc_client/cli_pipe.c
===================================================================
--- branches/tmp/RPCREWRITE/source/rpc_client/cli_pipe.c	2005-09-01 22:02:56 UTC (rev 9922)
+++ branches/tmp/RPCREWRITE/source/rpc_client/cli_pipe.c	2005-09-01 22:27:36 UTC (rev 9923)
@@ -1242,7 +1242,10 @@
 		}
 
 		/* Create and marshall the header and request header. */
-		init_rpc_hdr(&hdr, RPC_REQUEST, flags, call_id, data_sent_thistime + ss_padding, auth_len);
+		init_rpc_hdr(&hdr, RPC_REQUEST, flags, call_id,
+				RPC_HEADER_LEN + RPC_HDR_REQ_LEN + data_sent_thistime + ss_padding,
+				auth_len);
+
 		if(!smb_io_rpc_hdr("hdr    ", &hdr, &outgoing_pdu, 0)) {
 			prs_mem_free(&outgoing_pdu);
 			return NT_STATUS_NO_MEMORY;



More information about the samba-cvs mailing list