mirror of
https://github.com/samba-team/samba.git
synced 2025-11-23 20:23:50 +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:
committed by
Gerald (Jerry) Carter
parent
fee5b6f407
commit
c10195f313
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user