summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-04-08 04:13:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:32 -0500
commit14ce1ed40c9c6b7a4ac55ae56c247c66c46fe546 (patch)
treebadddc21184d09c6483341af1f954afb29c1fee7
parent1253a174f376f575819d0c84e8ee10ac43d18725 (diff)
downloadsamba-14ce1ed40c9c6b7a4ac55ae56c247c66c46fe546.tar.gz
samba-14ce1ed40c9c6b7a4ac55ae56c247c66c46fe546.tar.bz2
samba-14ce1ed40c9c6b7a4ac55ae56c247c66c46fe546.zip
r6243: 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. (This used to be commit e7189a4e4b2211ce396944559d38056fa5b57f65)
-rw-r--r--source3/rpc_parse/parse_rpc.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_rpc.c b/source3/rpc_parse/parse_rpc.c
index 823e0e8d2a..6bdab2e437 100644
--- a/source3/rpc_parse/parse_rpc.c
+++ b/source3/rpc_parse/parse_rpc.c
@@ -404,6 +404,9 @@ void init_rpc_hdr_rb(RPC_HDR_RB *rpc,
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,6 +427,20 @@ BOOL smb_io_rpc_hdr_rb(const char *desc, RPC_HDR_RB *rpc, prs_struct *ps, int de
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;
}