Skip to content
This repository was archived by the owner on Sep 27, 2025. It is now read-only.

Commit b5a5c73

Browse files
committed
re-use connection for last call to getVulnerability per #3408
1 parent 41bbe18 commit b5a5c73

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/java/org/owasp/dependencycheck/data/nvdcve

1 file changed

+1
-1
lines changed

core/src/main/java/org/owasp/dependencycheck/data/nvdcve/CveDB.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ public List<Vulnerability> getVulnerabilities(Cpe cpe) throws DatabaseException
627627
//remember to process the last set of CVE/CPE entries
628628
final VulnerableSoftware matchedCPE = getMatchingSoftware(cpe, vulnSoftware);
629629
if (matchedCPE != null) {
630-
final Vulnerability v = getVulnerability(currentCVE);
630+
final Vulnerability v = getVulnerability(currentCVE, conn);
631631
if (v != null) {
632632
v.setMatchedVulnerableSoftware(matchedCPE);
633633
v.setSource(Vulnerability.Source.NVD);

0 commit comments

Comments
 (0)