diff --git a/lynis_report.pl b/lynis_report.pl
index 10547c8..f75c5ad 100755
--- a/lynis_report.pl
+++ b/lynis_report.pl
@@ -429,7 +429,11 @@ END
hostid: | $lynis_report_data{'hostid'} |
hostid: | $lynis_report_data{'hostid2'} |
END
- print OUT "\t\t\t\t\tPlugin-firewall iptables list: | ".join(" \n", @{$lynis_report_data{'plugin_firewall_iptables_list'}})." |
\n";
+ if (exists($lynis_report_data{'plugin_firewall_iptables_list'})) {
+ if (ref($lynis_report_data{'plugin_firewall_iptables_list'}) eq 'ARRAY') {
+ print OUT "\t\t\t\t\tPlugin-firewall iptables list: | ".join(" \n", @{$lynis_report_data{'plugin_firewall_iptables_list'}})." |
\n";
+ }
+ }
print OUT "\t\t\t\t\n";
if ((exists($lynis_report_data{'plugin_processes_allprocesses'})) and ($lynis_report_data{'plugin_processes_allprocesses'} ne "")) {
print OUT "\t\t\t\tPlugin-processes: discovered processes:
\n";