summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Ethereal/Conformance.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Ethereal/Conformance.pm b/source4/pidl/lib/Parse/Pidl/Ethereal/Conformance.pm
index 45654fe6aa..8a4782073d 100644
--- a/source4/pidl/lib/Parse/Pidl/Ethereal/Conformance.pm
+++ b/source4/pidl/lib/Parse/Pidl/Ethereal/Conformance.pm
@@ -68,9 +68,16 @@ sub handle_strip_prefix($$)
sub handle_noemit($$)
{
- my ($data,$type) = @_;
+ my ($data) = shift;
+ my $type;
- $data->{noemit}->{$type} = 1;
+ $type = shift if ($#_ == 1);
+
+ if (defined($type)) {
+ $data->{noemit}->{$type} = 1;
+ } else {
+ $data->{noemit_dissector} = 1;
+ }
}
sub handle_protocol($$$$$)