From c02c835c98c22f533a9f2962a2daf1afc9b3c80c Mon Sep 17 00:00:00 2001 From: dataking Date: Mon, 1 Aug 2016 21:30:23 -0700 Subject: [PATCH] minor bug fix --- lynis_report.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lynis_report.pl b/lynis_report.pl index a4de6f8..be6ee6a 100755 --- a/lynis_report.pl +++ b/lynis_report.pl @@ -103,6 +103,13 @@ close RPT or die colored("There was a problem closing the lynis report: $! \n", @{$lynis_report_data{'boot_service[]'}} = &dedup_array($lynis_report_data{'boot_service[]'}) if (ref($lynis_report_data{'boot_service[]'}) eq "ARRAY"); @{$lynis_report_data{'cronjob[]'}} = &dedup_array($lynis_report_data{'cronjob[]'}) if (ref($lynis_report_data{'cronjob[]'}) eq 'ARRAY'); +if (exists($lynis_report_data{'pam_auth_brute_force_protection_module[]'})) { + if (ref($lynis_report_data{'pam_auth_brute_force_protection_module[]'}) eq 'ARRAY') { + @{$lynis_report_data{'pam_auth_brute_force_protection_module[]'}} = &dedup_array($lynis_report_data{'pam_auth_brute_force_protection_module[]'}); + } +} + + my $pass_score = &calc_password_complexity_score; my (%warnings, %suggestions);