fix new cve contents (#735)

This commit is contained in:
sadayuki-matsuno
2018-11-15 13:43:06 +09:00
committed by Kota Kanbe
parent 98c5421edc
commit 76037cdf72
2 changed files with 8 additions and 1 deletions

View File

@@ -45,6 +45,9 @@ func (ms Microsoft) FillWithGost(driver db.DB, r *models.ScanResult) (nCVEs int,
}
cveCont := ms.ConvertToModel(&msCve)
v, _ := r.ScannedCves[cveID]
if v.CveContents == nil {
v.CveContents = models.CveContents{}
}
v.CveContents[models.Microsoft] = *cveCont
r.ScannedCves[cveID] = v
}