summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/pidl/lib/Parse/Pidl/NDR.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/NDR.pm b/source4/pidl/lib/Parse/Pidl/NDR.pm
index 0dd1ab4dd2..179d2ecb12 100644
--- a/source4/pidl/lib/Parse/Pidl/NDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/NDR.pm
@@ -642,7 +642,9 @@ sub Parse($)
my @ndr = ();
- push(@ndr, ParseInterface($_)) foreach (@{$idl});
+ foreach (@{$idl}) {
+ ($_->{TYPE} eq "INTERFACE") && push(@ndr, ParseInterface($_));
+ }
return \@ndr;
}