Skip to content

Commit

Permalink
fix(report): avoid nil pointer when report FreeBSD (future-architect#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kotakanbe authored Apr 5, 2021
1 parent 183fdcb commit 36c9c22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions detector/detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 36c9c22

Please sign in to comment.