Skip to content

Commit

Permalink
re-use connection for last call to getVulnerability per #3408
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylong committed Jun 10, 2021
1 parent 41bbe18 commit b5a5c73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ public List<Vulnerability> getVulnerabilities(Cpe cpe) throws DatabaseException
//remember to process the last set of CVE/CPE entries
final VulnerableSoftware matchedCPE = getMatchingSoftware(cpe, vulnSoftware);
if (matchedCPE != null) {
final Vulnerability v = getVulnerability(currentCVE);
final Vulnerability v = getVulnerability(currentCVE, conn);
if (v != null) {
v.setMatchedVulnerableSoftware(matchedCPE);
v.setSource(Vulnerability.Source.NVD);
Expand Down

0 comments on commit b5a5c73

Please sign in to comment.