Skip to content

Commit

Permalink
Add SCANNER_TYPE_OSP_SENSOR to task config checks
Browse files Browse the repository at this point in the history
The functions create_task_check_config_scanner and
modify_task_check_config_scannerfunction were missing cases for
the new scanner type.
  • Loading branch information
timopollmeier committed Sep 27, 2019
1 parent 1b8f719 commit 416e593
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/manage_sql_configs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2538,6 +2538,8 @@ create_task_check_config_scanner (config_t config, scanner_t scanner)
return 1;
if (ctype == 0 && stype == SCANNER_TYPE_GMP)
return 1;
if (ctype == 0 && stype == SCANNER_TYPE_OSP_SENSOR)
return 1;
if (ctype == 1 && stype == SCANNER_TYPE_OSP)
return 1;

Expand Down Expand Up @@ -2615,6 +2617,10 @@ modify_task_check_config_scanner (task_t task, const char *config_id,
if (stype == SCANNER_TYPE_GMP && ctype == 0)
return 0;

/* OSP Sensor with OpenVAS config. */
if (stype == SCANNER_TYPE_OSP_SENSOR && ctype == 0)
return 0;

/* Default Scanner with OpenVAS Config. */
if (scanner == 0 && ctype == 0)
return 0;
Expand Down

0 comments on commit 416e593

Please sign in to comment.