[Openvas-commits] r13228 - in trunk/gsa: . src
scm-commit at wald.intevation.org
scm-commit at wald.intevation.org
Thu Apr 12 17:14:38 CEST 2012
Author: mattm
Date: 2012-04-12 17:14:38 +0200 (Thu, 12 Apr 2012)
New Revision: 13228
Modified:
trunk/gsa/ChangeLog
trunk/gsa/src/gsad_omp.c
Log:
* src/gsad_omp.c (CHECK): Go to right page on error.
(save_target_omp): Only check port if there's an SSH credential.
Modified: trunk/gsa/ChangeLog
===================================================================
--- trunk/gsa/ChangeLog 2012-04-12 13:58:40 UTC (rev 13227)
+++ trunk/gsa/ChangeLog 2012-04-12 15:14:38 UTC (rev 13228)
@@ -1,3 +1,8 @@
+2012-04-12 Matthew Mundell <matthew.mundell at greenbone.net>
+
+ * src/gsad_omp.c (CHECK): Go to right page on error.
+ (save_target_omp): Only check port if there's an SSH credential.
+
2012-04-11 Matthew Mundell <matthew.mundell at greenbone.net>
* src/gsad_omp.c (edit_target, get_target): Print pass through info
Modified: trunk/gsa/src/gsad_omp.c
===================================================================
--- trunk/gsa/src/gsad_omp.c 2012-04-12 13:58:40 UTC (rev 13227)
+++ trunk/gsa/src/gsad_omp.c 2012-04-12 15:14:38 UTC (rev 13228)
@@ -5839,7 +5839,7 @@
msg = g_strdup_printf (GSAD_MESSAGE_INVALID, \
"Given " G_STRINGIFY (name) " was invalid", \
"Modify Target"); \
- html = new_target (credentials, params, msg); \
+ html = edit_target (credentials, params, msg); \
g_free (msg); \
return html; \
}
@@ -5911,8 +5911,11 @@
CHECK (comment);
CHECK (port_list_id);
CHECK (target_credential);
- CHECK (port);
CHECK (target_smb_credential);
+ if (target_credential
+ && strcmp (target_credential, "--")
+ && strcmp (target_credential, "0"))
+ CHECK (port);
{
int ret;
More information about the Openvas-commits
mailing list