Skip to content

Commit

Permalink
Merge pull request #1464 from greenbone/mergify/bp/gvmd-21.04/pr-1462
Browse files Browse the repository at this point in the history
Fix report host end time check in CVE scans (bp #1462)
  • Loading branch information
timopollmeier authored Mar 24, 2021
2 parents 1fa443a + 16ba4fb commit 7e8ff54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Update report run status more consistently [#1434](https://github.com/greenbone/gvmd/pull/1434)
- Improve modify_override errors, fix no NVT case [#1435](https://github.com/greenbone/gvmd/pull/1435)
- Fix size calculation in `--optimize vacuum` [#1447](https://github.com/greenbone/gvmd/pull/1447)
- Fix report host end time check in CVE scans [#1462](https://github.com/greenbone/gvmd/pull/1462)

### Removed

Expand Down
2 changes: 1 addition & 1 deletion src/manage_sql.c
Original file line number Diff line number Diff line change
Expand Up @@ -25484,7 +25484,7 @@ host_nthlast_report_host (const char *host, report_host_t *report_host,
" AND task_preferences.task = tasks.id"
" AND task_preferences.name = 'in_assets')"
" = 'yes'"
" AND report_hosts.end_time IS NOT NULL"
" AND report_hosts.end_time > 0"
" AND NOT EXISTS (SELECT * FROM report_host_details"
" WHERE report_host = report_hosts.id"
" AND name = 'CVE Scan')"
Expand Down

0 comments on commit 7e8ff54

Please sign in to comment.