summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm2
-rwxr-xr-xsource4/pidl/pidl4
2 files changed, 4 insertions, 2 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm b/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm
index a0e8f4126b..dbaf12b572 100644
--- a/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm
+++ b/source4/pidl/lib/Parse/Pidl/Ethereal/NDR.pm
@@ -707,6 +707,8 @@ sub Parse($$$$)
my($ndr,$idl_file,$h_filename,$cnf_file) = @_;
Initialize($cnf_file);
+ return (undef, undef) if defined($conformance->{noemit_dissector});
+
$tabs = "";
%res = (code=>"",def=>"",hdr=>"");
diff --git a/source4/pidl/pidl b/source4/pidl/pidl
index a8631043b2..c68ea6c121 100755
--- a/source4/pidl/pidl
+++ b/source4/pidl/pidl
@@ -326,8 +326,8 @@ $dcom
$cnffile =~ s/\.idl$/\.cnf/;
my ($dp, $dh) = Parse::Pidl::Ethereal::NDR::Parse($ndr, $idl_file, $eheader, $cnffile);
- FileSave($eparser, $dp);
- FileSave($eheader, $dh);
+ FileSave($eparser, $dp) if defined($dp);
+ FileSave($eheader, $dh) if defined($dh);
}
my $tdr_parser = ($opt_tdr_parser or "$outputdir/tdr_$basename.c");