diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm index d7f3814abd1..67602c42625 100644 --- a/source4/build/pidl/parser.pm +++ b/source4/build/pidl/parser.pm @@ -770,8 +770,6 @@ sub ParseStructPull($) return; } - start_flags($struct); - # see if the structure contains a conformant array. If it # does, then it must be the last element of the structure, and # we need to pull the conformant length early, as it fits on @@ -792,6 +790,8 @@ sub ParseStructPull($) } } + start_flags($struct); + pidl "\tif (!(ndr_flags & NDR_SCALARS)) goto buffers;\n"; pidl "\tNDR_CHECK(ndr_pull_struct_start(ndr));\n";