parse_nessus.php null parameter fix
Line 1214 of parse_nessus.php had a bug when parsing by-name Nessus scan data. Fixed with isset() check.
This commit is contained in:
parent
c07f0a709b
commit
6efe94f4dc
@ -1210,7 +1210,7 @@ class nessus_parser extends scan_xml_parser
|
|||||||
}
|
}
|
||||||
$finding = $this->db->get_Finding($this->tgt, $this->plugin->db_plugin);
|
$finding = $this->db->get_Finding($this->tgt, $this->plugin->db_plugin);
|
||||||
|
|
||||||
if (is_array($finding) && count($finding)) {
|
if (is_array($finding) && count($finding) && isset($finding[0])) {
|
||||||
$finding = current($finding[0]);
|
$finding = current($finding[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user