Skip to content

Commit

Permalink
Merge pull request #668 from timopollmeier/slave_system_report-fix
Browse files Browse the repository at this point in the history
Fix slave_system_report permission check
  • Loading branch information
mattmundell authored Aug 7, 2019
2 parents ba9b256 + 94707c7 commit 9f422a1
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 @@ -33,6 +33,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix iCalendar recurrence and timezone handling [#654](https://github.com/greenbone/gvmd/pull/654)
- Fix issues with some scheduled tasks by using iCalendar more instead of old period fields [#656](https://github.com/greenbone/gvmd/pull/655)
- Fix an issue in getting the reports from GMP scanners [#659](https://github.com/greenbone/gvmd/pull/659) [#665](https://github.com/greenbone/gvmd/pull/665)
- Fix GET_SYSTEM_REPORTS using slave_id [#668](https://github.com/greenbone/gvmd/pull/668)

### Removed
- The handling of NVT updates via OTP has been removed. [#575](https://github.com/greenbone/gvmd/pull/575)
Expand Down
2 changes: 1 addition & 1 deletion src/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -5722,7 +5722,7 @@ slave_system_report (const char *name, const char *duration,
gmp_get_system_reports_opts_t opts;
int ret;

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

0 comments on commit 9f422a1

Please sign in to comment.