enh(scan class): Add return for set_Host_Error method

This commit is contained in:
Ryan Prather 2019-01-15 12:51:17 -05:00
parent 4660bc3b99
commit e893267c60
No known key found for this signature in database
GPG Key ID: 66FDE2B4E8AB87A7

View File

@ -620,6 +620,8 @@ class scan
* @param int $tgt_id
* @param boolean $is_error
* @param string $err_msg
*
* @return boolean
*/
public function set_Host_Error($tgt_id, $is_error, $err_msg = null)
{
@ -628,9 +630,11 @@ class scan
if($h->getTargetId() == $tgt_id) {
$this->host_list[$x]->setScanError($is_error);
$this->host_list[$x]->setScanNotes($err_msg);
break;
return true;
}
}
return false;
}
/**