Skip to content

Commit

Permalink
Use correct exclude host list
Browse files Browse the repository at this point in the history
Previously the wrong exlude host list was used
for the target which meant the stop-resume
feature was not working correctly.
The original exlude hosts were used instead of
the original plus the finished hosts.
  • Loading branch information
ArnoStiefvater committed Jun 18, 2021
1 parent d60a3c5 commit cc42f6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -4259,10 +4259,10 @@ launch_osp_openvas_task (task_t task, target_t target, const char *scan_id,
gchar *new_exclude_hosts;

new_exclude_hosts = g_strdup_printf ("%s,%s",
exclude_hosts_str,
clean_exclude_hosts,
finished_hosts_str);
free (exclude_hosts_str);
exclude_hosts_str = new_exclude_hosts;
free (clean_exclude_hosts);
clean_exclude_hosts = new_exclude_hosts;
}

osp_target = osp_target_new (clean_hosts, ports_str, clean_exclude_hosts,
Expand Down

0 comments on commit cc42f6d

Please sign in to comment.