Parse_nessus.php null parameter bug

Parse_nessus threw an error when parsing by-name Nessus scans. Fixed using an isset() check.
This commit is contained in:
Jeff Odegard 2019-01-15 16:55:42 -07:00 committed by GitHub
parent ee3cccd17c
commit 059d84f953
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1210,7 +1210,7 @@ class nessus_parser extends scan_xml_parser
}
$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]);
}