Skip to content

Commit f8217ef

Browse files
committed
updater: enable fetching of RHEL 5 vulnerabilities (#217)
The RHEL updater currently ignores vulnerabilities for CentOS <= 5. s the naming of the constant firstConsideredRHEL suggests it, it should actually considers CentOS 5 and ignores CentOS < 5. Fixes #215
1 parent 51e4086 commit f8217ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

updater/fetchers/rhel/rhel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func toFeatureVersions(criteria criteria) []database.FeatureVersion {
290290
}
291291
}
292292

293-
if osVersion > firstConsideredRHEL {
293+
if osVersion >= firstConsideredRHEL {
294294
featureVersion.Feature.Namespace.Name = "centos" + ":" + strconv.Itoa(osVersion)
295295
} else {
296296
continue

0 commit comments

Comments
 (0)