fix(scan): a bug of kernel Vulns detection on Ubuntu18 (#818)

* fix(scan): a bug of kernel Vulns detection on Ubuntu18

* fix the test case
This commit is contained in:
Kota Kanbe
2019-05-23 17:00:33 +09:00
committed by GitHub
parent e750bd53fc
commit 276363e793
4 changed files with 114 additions and 7 deletions

View File

@@ -562,7 +562,7 @@ func (v VulnInfo) AttackVector() string {
return ""
}
// PatchStatus returns attack vector string
// PatchStatus returns fixed or unfixed string
func (v VulnInfo) PatchStatus(packs Packages) string {
// Vuls don't know patch status of the CPE
if len(v.CpeURIs) != 0 {