Skip to content

Commit

Permalink
Subtracted one from vulnerability version id as this is the proper id…
Browse files Browse the repository at this point in the history
… we need
  • Loading branch information
ctevse committed Dec 11, 2023
1 parent e24434a commit 8f80519
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public int insertOrUpdateVulnerabilityFull(CompositeVulnerability vuln, boolean
int versionId = rs.getInt(1);
// int versionIdByName = rs.getInt("vuln_version_id");
// log.info("rs.getInt(1) returned {}\nrs.getInt(\"vuln_version_id\") returned {}", versionId, versionIdByName);
vuln.setVersionId(versionId);
vuln.setVersionId(versionId-1);
}
// if we're updating, copy over the vdo/cpe pointers to this new version
if (!newVuln) {
Expand Down

0 comments on commit 8f80519

Please sign in to comment.