Skip to content

Commit

Permalink
Merge pull request #2813 from ArnoStiefvater/fix-gsad-crash
Browse files Browse the repository at this point in the history
Use params_value instead of params_value_bool for allow_simultaneous_ips
  • Loading branch information
bjoernricks authored Mar 23, 2021
2 parents df72319 + 36de4e3 commit 7c0a701
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Added
- Added CVSS date to NVT details [#2802](https://github.com/greenbone/gsa/pull/2802)
- Add option to allow to scan simultaneous IPs to targets [#2779](https://github.com/greenbone/gsa/pull/2779)
- Add option to allow to scan simultaneous IPs to targets
[#2779](https://github.com/greenbone/gsa/pull/2779),
[#2813](https://github.com/greenbone/gsa/pull/2813)
- Added CVSS origin to NVT details [#2588](https://github.com/greenbone/gsa/pull/2588)
- Added the CVSS v3.1 BaseScore calculator to the `/cvsscalculator` page in the Help section. [#2536](https://github.com/greenbone/gsa/pull/2536)

Expand Down
4 changes: 2 additions & 2 deletions gsad/src/gsad_gmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -5313,7 +5313,7 @@ create_target_gmp (gvm_connection_t *connection, credentials_t *credentials,
hosts_filter = params_value (params, "hosts_filter");
file = params_value (params, "file");
exclude_file = params_value (params, "exclude_file");
allow_simultaneous_ips = params_value_bool (params, "allow_simultaneous_ips");
allow_simultaneous_ips = params_value (params, "allow_simultaneous_ips");

CHECK_VARIABLE_INVALID (name, "Create Target");
CHECK_VARIABLE_INVALID (target_source, "Create Target")
Expand Down Expand Up @@ -6284,7 +6284,7 @@ save_target_gmp (gvm_connection_t *connection, credentials_t *credentials,
target_smb_credential = params_value (params, "smb_credential_id");
target_esxi_credential = params_value (params, "esxi_credential_id");
target_snmp_credential = params_value (params, "snmp_credential_id");
allow_simultaneous_ips = params_value_bool (params, "allow_simultaneous_ips");
allow_simultaneous_ips = params_value (params, "allow_simultaneous_ips");

CHECK_VARIABLE_INVALID (target_source, "Save Target");
CHECK_VARIABLE_INVALID (target_exclude_source, "Save Target");
Expand Down

0 comments on commit 7c0a701

Please sign in to comment.