fix(report): ignore exploits of no-cve-id vulns (#906)

This commit is contained in:
Kota Kanbe
2019-09-13 12:49:57 +09:00
committed by GitHub
parent be659ae094
commit 2b02807ef0
2 changed files with 4 additions and 1 deletions

View File

@@ -44,6 +44,9 @@ func FillWithExploit(driver db.DB, r *models.ScanResult) (nExploitCve int, err e
return 0, nil
}
for cveID, vuln := range r.ScannedCves {
if cveID == "" {
continue
}
es := driver.GetExploitByCveID(cveID)
if len(es) == 0 {
continue