From f86668d1c28c4df7de1cbc9c8b20f3aa7b61e7d5 Mon Sep 17 00:00:00 2001 From: dataking Date: Mon, 1 Aug 2016 14:14:12 -0700 Subject: [PATCH] bug fix --- lynis_report.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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\t
Plugin-processes: discovered processes:
\n";