fix(report): avoid nil pointer when report FreeBSD (#1208)

This commit is contained in:
Kota Kanbe
2021-04-05 12:54:27 +09:00
committed by GitHub
parent 183fdcbdef
commit 36c9c229b8

View File

@@ -334,6 +334,9 @@ func detectPkgsCvesWithOval(cnf config.GovalDictConf, r *models.ScanResult) erro
if err != nil {
return err
}
if ovalClient == nil {
return nil
}
logging.Log.Debugf("Check if oval fetched: %s %s", r.Family, r.Release)
ok, err := ovalClient.CheckIfOvalFetched(r.Family, r.Release)