change gost do not use r.Family

This commit is contained in:
MaineK00n
2020-07-15 00:44:43 +09:00
parent 61e35a5581
commit e7e29af3da
2 changed files with 7 additions and 3 deletions

View File

@@ -351,7 +351,11 @@ func FillWithOval(driver ovaldb.DB, r *models.ScanResult) (nCVEs int, err error)
// FillWithGost fills CVEs with gost dataabase
// https://github.com/knqyf263/gost
func FillWithGost(driver gostdb.DB, r *models.ScanResult, ignoreWillNotFix bool) (nCVEs int, err error) {
gostClient := gost.NewClient(r.Family)
var family string = r.Family
if r.Family == config.Raspbian {
family = config.Debian
}
gostClient := gost.NewClient(family)
// TODO chekc if fetched
// TODO chekc if fresh enough
if nCVEs, err = gostClient.DetectUnfixed(driver, r, ignoreWillNotFix); err != nil {