[Openvas-commits] r5742 - in trunk/openvas-manager: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Oct 28 10:52:22 CET 2009


Author: mattm
Date: 2009-10-28 10:52:17 +0100 (Wed, 28 Oct 2009)
New Revision: 5742

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/manage.c
Log:
	* src/manage.c (start_task): Set current_scanner_task before task run
	status, so that report run status is set with task run status.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-10-28 08:37:40 UTC (rev 5741)
+++ trunk/openvas-manager/ChangeLog	2009-10-28 09:52:17 UTC (rev 5742)
@@ -1,3 +1,8 @@
+2009-10-28  Matthew Mundell <matthew.mundell at intevation.de>
+
+	* src/manage.c (start_task): Set current_scanner_task before task run
+	status, so that report run status is set with task run status.
+
 2009-10-26  Matthew Mundell <matthew.mundell at intevation.de>
 
 	Add an id column to each table to force VACUUM to respect ROWID.  This

Modified: trunk/openvas-manager/src/manage.c
===================================================================
--- trunk/openvas-manager/src/manage.c	2009-10-28 08:37:40 UTC (rev 5741)
+++ trunk/openvas-manager/src/manage.c	2009-10-28 09:52:17 UTC (rev 5742)
@@ -857,6 +857,8 @@
   if (fail) return -1;
   scanner_active = 1;
 
+  current_scanner_task = task;
+
   set_task_run_status (task, TASK_STATUS_REQUESTED);
 
 #if TASKS_FS
@@ -867,8 +869,6 @@
   // FIX
 #endif
 
-  current_scanner_task = task;
-
   return 0;
 }
 



More information about the Openvas-commits mailing list