svn commit: samba r6243 - in branches/SAMBA_3_0/source/rpc_parse: .

jerry at samba.org jerry at samba.org
Fri Apr 8 04:13:19 GMT 2005


Author: jerry
Date: 2005-04-08 04:13:19 +0000 (Fri, 08 Apr 2005)
New Revision: 6243

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

Log:
Yes.  I *will* hate myself in the morning for this one.
I need to gather some more information to know if these
extra context id's may be used later.  But for now,
pw changes via CTL+ALT+DEL from win2k3sp1 clients work.



Modified:
   branches/SAMBA_3_0/source/rpc_parse/parse_rpc.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_parse/parse_rpc.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_parse/parse_rpc.c	2005-04-07 22:37:03 UTC (rev 6242)
+++ branches/SAMBA_3_0/source/rpc_parse/parse_rpc.c	2005-04-08 04:13:19 UTC (rev 6243)
@@ -404,6 +404,9 @@
 
 BOOL smb_io_rpc_hdr_rb(const char *desc, RPC_HDR_RB *rpc, prs_struct *ps, int depth)
 {
+	RPC_HDR_RB rpc2;
+	int i;
+	
 	if (rpc == NULL)
 		return False;
 
@@ -424,7 +427,21 @@
 		return False;
 	if(!smb_io_rpc_iface("", &rpc->transfer, ps, depth))
 		return False;
+		
+	/* just chew through extra context id's for now */
+	
+	for ( i=1; i<rpc->num_elements; i++ ) {
+		if(!prs_uint16("context_id  ", ps, depth, &rpc2.context_id ))
+			return False;
+		if(!prs_uint8 ("num_syntaxes", ps, depth, &rpc2.num_syntaxes))
+			return False;
 
+		if(!smb_io_rpc_iface("", &rpc2.abstract, ps, depth))
+			return False;
+		if(!smb_io_rpc_iface("", &rpc2.transfer, ps, depth))
+			return False;
+	}	
+
 	return True;
 }
 



More information about the samba-cvs mailing list