Skip to content

Commit

Permalink
Merge pull request #1365 from timopollmeier/get_info-score-fix
Browse files Browse the repository at this point in the history
Fix init_cpe_cve_iterator SQL
  • Loading branch information
mattmundell authored Nov 30, 2020
2 parents b79ba23 + abd55e0 commit d53bd4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Move EXE credential generation to a Python script [#1260](https://github.com/greenbone/gvmd/pull/1260) [#1262](https://github.com/greenbone/gvmd/pull/1262)
- Clarify documentation for --scan-host parameter [#1277](https://github.com/greenbone/gvmd/pull/1277)
- In result iterator access severity directly if possible [#1321](https://github.com/greenbone/gvmd/pull/1321)
- Change SCAP and CERT data to use new severity scoring [#1333](https://github.com/greenbone/gvmd/pull/1333) [#1357](https://github.com/greenbone/gvmd/pull/1357)
- Change SCAP and CERT data to use new severity scoring [#1333](https://github.com/greenbone/gvmd/pull/1333) [#1357](https://github.com/greenbone/gvmd/pull/1357) [#1365](https://github.com/greenbone/gvmd/pull/1365)

### Fixed
- Use GMP version with leading zero for feed dirs [#1287](https://github.com/greenbone/gvmd/pull/1287)
Expand Down
4 changes: 2 additions & 2 deletions src/manage_sql_secinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,13 +628,13 @@ init_cpe_cve_iterator (iterator_t *iterator, const char *cve, int ascending,
assert (cve);
quoted_cpe = sql_quote (cve);
init_iterator (iterator,
"SELECT id, name, cvss FROM cves WHERE id IN"
"SELECT id, name, score FROM cves WHERE id IN"
" (SELECT cve FROM affected_products"
" WHERE cpe ="
" (SELECT id FROM cpes WHERE name = '%s'))"
" ORDER BY %s %s;",
quoted_cpe,
sort_field ? sort_field : "cvss DESC, name",
sort_field ? sort_field : "score DESC, name",
ascending ? "ASC" : "DESC");
g_free (quoted_cpe);
}
Expand Down

0 comments on commit d53bd4c

Please sign in to comment.