1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

r11997: for multidimentional array like this:

uint32 [num_level2][num_level1][num_level0]

fix the order they're pushed and pulled, it should be like this

for (l2=0; l2 < num_level2; l2++) {
	for (l1=0; l1 < num_level1; l1++) {
		for (l0=0; l0 < num_level0; l0++) {
			ndr_pull_uint32(...);
		}
	}
}

metze
This commit is contained in:
Stefan Metzmacher 2005-12-01 12:39:33 +00:00 committed by Gerald (Jerry) Carter
parent fee5b6f407
commit c10195f313

View File

@ -104,9 +104,10 @@ sub GetElementLevelTable($)
if (defined($e->{ARRAY_LEN})) {
@bracket_array = @{$e->{ARRAY_LEN}};
}
# Parse the [][][][] style array stuff
foreach my $d (@bracket_array) {
for my $i (0 .. $#bracket_array) {
my $d = $bracket_array[$#bracket_array - $i];
my $size = $d;
my $length = $d;
my $is_surrounding = 0;