change use r.Family because family has a large impact

This commit is contained in:
MaineK00n
2020-07-28 00:58:13 +09:00
parent e7e29af3da
commit df839fbdce
3 changed files with 9 additions and 16 deletions

View File

@@ -351,11 +351,7 @@ 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) {
var family string = r.Family
if r.Family == config.Raspbian {
family = config.Debian
}
gostClient := gost.NewClient(family)
gostClient := gost.NewClient(r.Family)
// TODO chekc if fetched
// TODO chekc if fresh enough
if nCVEs, err = gostClient.DetectUnfixed(driver, r, ignoreWillNotFix); err != nil {