svn commit: samba r17136 - in branches: SAMBA_3_0/source/rpc_parse SAMBA_3_0_23/source/rpc_parse

vlendec at samba.org vlendec at samba.org
Wed Jul 19 15:05:06 GMT 2006


Author: vlendec
Date: 2006-07-19 15:05:06 +0000 (Wed, 19 Jul 2006)
New Revision: 17136

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

Log:
Fix alignment on lsaquery. This broke in particular level 6, where the client
tried to figure out which role we are.

Needs to go into 23a.

Thanks to Karolin for insisting and setting up the test case :-)

Volker

Modified:
   branches/SAMBA_3_0/source/rpc_parse/parse_lsa.c
   branches/SAMBA_3_0_23/source/rpc_parse/parse_lsa.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_parse/parse_lsa.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_parse/parse_lsa.c	2006-07-19 13:46:21 UTC (rev 17135)
+++ branches/SAMBA_3_0/source/rpc_parse/parse_lsa.c	2006-07-19 15:05:06 UTC (rev 17136)
@@ -986,6 +986,9 @@
 	if(!prs_uint16("info_class", ps, depth, &ctr->info_class))
 		return False;
 
+	if(!prs_align(ps))
+		return False;
+
 	switch (ctr->info_class) {
 	case 1:
 		if(!lsa_io_dom_query_1("", &ctr->info.id1, ps, depth))

Modified: branches/SAMBA_3_0_23/source/rpc_parse/parse_lsa.c
===================================================================
--- branches/SAMBA_3_0_23/source/rpc_parse/parse_lsa.c	2006-07-19 13:46:21 UTC (rev 17135)
+++ branches/SAMBA_3_0_23/source/rpc_parse/parse_lsa.c	2006-07-19 15:05:06 UTC (rev 17136)
@@ -986,6 +986,9 @@
 	if(!prs_uint16("info_class", ps, depth, &ctr->info_class))
 		return False;
 
+	if(!prs_align(ps))
+		return False;
+
 	switch (ctr->info_class) {
 	case 1:
 		if(!lsa_io_dom_query_1("", &ctr->info.id1, ps, depth))



More information about the samba-cvs mailing list