Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kotakanbe committed Oct 14, 2016
1 parent c0cb57d commit 7a63126
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion config/tomlloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ func (c TOMLLoader) Load(pathToToml, keyPass string) (err error) {

i := 0
for name, v := range conf.Servers {

if 0 < len(v.KeyPassword) {
log.Warn("[Deprecated] KEYPASSWORD IN CONFIG FILE ARE UNSECURE. REMOVE THEM IMMEDIATELY FOR A SECURITY REASONS. THEY WILL BE REMOVED IN A FUTURE RELEASE.")
}
Expand Down
7 changes: 6 additions & 1 deletion scan/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,21 @@ func (l *base) convertToModel() (models.ScanResult, error) {
var scoredCves, unscoredCves, ignoredCves models.CveInfos
for _, p := range l.UnsecurePackages {
// ignoreCves
found := false
for _, icve := range l.getServerInfo().IgnoreCves {
if icve == p.CveDetail.CveID {
ignoredCves = append(ignoredCves, models.CveInfo{
CveDetail: p.CveDetail,
Packages: p.Packs,
DistroAdvisories: p.DistroAdvisories,
})
continue
found = true
break
}
}
if found {
continue
}

// unscoredCves
if p.CveDetail.CvssScore(config.Conf.Lang) <= 0 {
Expand Down

0 comments on commit 7a63126

Please sign in to comment.