Change CveContents data type to map

This commit is contained in:
Kota Kanbe
2017-05-06 04:52:19 +09:00
committed by kota kanbe
parent 12c2d3cbc6
commit f26b61d773
7 changed files with 66 additions and 62 deletions

View File

@@ -295,7 +295,7 @@ func scanVulnByCpeNames(cpeNames []string, scannedVulns []models.VulnInfo) ([]mo
CpeNames: []string{name},
Confidence: models.CpeNameMatch,
}
v.NilSliceToEmpty()
v.NilToEmpty()
set[detail.CveID] = v
}
}