minor bug fix

This commit is contained in:
dataking 2016-08-01 21:30:23 -07:00
parent 6aa21305dd
commit c02c835c98

View File

@ -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);