Fix nmap os detection with OS details

This commit is contained in:
Calvo 2023-05-23 17:56:41 +02:00
parent ae7c5d8f67
commit e77657a121
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ sub PandoraFMS::Recon::Base::guess_os($$;$) {
return OS_OTHER if ($? != 0);
my $str_os;
if ($return =~ /Aggressive OS guesses:\s*(.*)|OS details:\s(.*)/) {
if($1 ne "") {
if(defined($1) && $1 ne "") {
$str_os = $1;
} else {
$str_os = $2;