Author: bricks
Date: 2016-10-12 13:54:02 +0200 (Wed, 12 Oct 2016)
New Revision: 26383

Modified:
   trunk/gsa/ChangeLog
   trunk/gsa/src/gsad_omp.c
Log:
* src/gsad_omp.c (create_target_omp): Remove obsolete check for target_source
import and name parameter is set. import feature got removed a while ago.

Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog 2016-10-12 11:05:54 UTC (rev 26382)
+++ trunk/gsa/ChangeLog 2016-10-12 11:54:02 UTC (rev 26383)
@@ -1,5 +1,10 @@
 2016-10-12 Bj�rn Ricks <bjoern.ri...@greenbone.net>
 
+       * src/gsad_omp.c (create_target_omp): Remove obsolete check for 
target_source
+       import and name parameter is set. import feature got removed a while 
ago.
+
+2016-10-12 Bj�rn Ricks <bjoern.ri...@greenbone.net>
+
        * src/gsad_omp.c (create_target_omp): Improve error message if 
target_source
        is set to manual and no list of hosts is given.
 

Modified: trunk/gsa/src/gsad_omp.c
===================================================================
--- trunk/gsa/src/gsad_omp.c    2016-10-12 11:05:54 UTC (rev 26382)
+++ trunk/gsa/src/gsad_omp.c    2016-10-12 11:54:02 UTC (rev 26383)
@@ -9691,11 +9691,6 @@
                             "Missing manual list of hosts",
                             G_STRINGIFY (MHD_HTTP_BAD_REQUEST),
                             "Create Target", "new_target");
-  if (strcmp (target_source, "import") == 0 && name == NULL)
-    return message_invalid (credentials, params, response_data,
-                            "Given target_source was invalid",
-                            G_STRINGIFY (MHD_HTTP_BAD_REQUEST),
-                            "Create Target", "new_target");
 
   /* require hosts_filter if target_source is "asset_hosts" */
   if (strcmp (target_source, "asset_hosts") == 0)

_______________________________________________
Openvas-commits mailing list
Openvas-commits@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-commits

Reply via email to