From cc42f6d9d53a7a7d8fc6309bb2b67e2eddf6e7dc Mon Sep 17 00:00:00 2001 From: ArnoStiefvater Date: Fri, 18 Jun 2021 11:13:28 +0200 Subject: [PATCH] Use correct exclude host list 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. --- src/manage.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/manage.c b/src/manage.c index 6f41cb662..23fa29de0 100644 --- a/src/manage.c +++ b/src/manage.c @@ -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,