Merge pull request #681 from Allda/rhel_severity
Vulnsrc rhel: handle "none" CVE impact
This commit is contained in:
commit
5cd6a8cc92
@ -221,7 +221,7 @@ func parseRHSA(ovalReader io.Reader) (vulnerabilities []database.VulnerabilityWi
|
||||
for _, currentCve := range definition.Cves {
|
||||
vulnerability.Name = currentCve.ID
|
||||
vulnerability.Link = currentCve.Href
|
||||
if currentCve.Impact != "" {
|
||||
if currentCve.Impact != "" && currentCve.Impact != "none" {
|
||||
vulnerability.Severity = severity(currentCve.Impact)
|
||||
} else {
|
||||
vulnerability.Severity = severity(definition.Severity)
|
||||
|
Loading…
Reference in New Issue
Block a user