Skip to content

Commit

Permalink
Merge pull request #949 from timopollmeier/gmp-performance-report-9.0
Browse files Browse the repository at this point in the history
Fix get_system_reports for GMP scanners (9.0)
  • Loading branch information
mattmundell authored Jan 21, 2020
2 parents 7dc90de + 6c22de6 commit 274987c
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 @@ -47,6 +47,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Remove incorrect duplicates from config preference migrator [#940](https://github.com/greenbone/gvmd/pull/940)
- Correct pref ID in migrate_219_to_220 [#941](https://github.com/greenbone/gvmd/pull/941)
- Set run status only after getting OSP-OpenVAS scan [#948](https://github.com/greenbone/gvmd/pull/948)
- Fix get_system_reports for GMP scanners [#949](https://github.com/greenbone/gvmd/pull/949)

### Removed
- Remove 1.3.6.1.4.1.25623.1.0.90011 from Discovery config (9.0) [#847](https://github.com/greenbone/gvmd/pull/847)
Expand Down
2 changes: 1 addition & 1 deletion src/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -6216,13 +6216,13 @@ get_system_report_types (const char *required_type, gchar ***start,
scanner_type_t slave_type;

slave = 0;
slave_type = SCANNER_TYPE_NONE;

if (find_scanner_with_permission (slave_id, &slave, "get_scanners"))
return -1;
if (slave == 0)
return 2;

slave_type = scanner_type (slave);
if (slave_type == SCANNER_TYPE_GMP)
return get_slave_system_report_types (required_type, start, types,
slave);
Expand Down

0 comments on commit 274987c

Please sign in to comment.