[Openvas-commits] r5883 - in trunk/openvas-manager: . src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Nov 17 23:14:25 CET 2009
Author: mattm
Date: 2009-11-17 23:14:21 +0100 (Tue, 17 Nov 2009)
New Revision: 5883
Modified:
trunk/openvas-manager/ChangeLog
trunk/openvas-manager/src/omp.c
Log:
* src/omp.c (omp_xml_handle_end_element): In CLIENT_GET_NVT_DETAILS and
CLIENT_GET_CONFIGS send empty PREFERENCE VALUEs when type is password.
Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog 2009-11-17 20:42:12 UTC (rev 5882)
+++ trunk/openvas-manager/ChangeLog 2009-11-17 22:14:21 UTC (rev 5883)
@@ -1,5 +1,10 @@
2009-11-17 Matthew Mundell <matthew.mundell at intevation.de>
+ * src/omp.c (omp_xml_handle_end_element): In CLIENT_GET_NVT_DETAILS and
+ CLIENT_GET_CONFIGS send empty PREFERENCE VALUEs when type is password.
+
+2009-11-17 Matthew Mundell <matthew.mundell at intevation.de>
+
* src/tasks_sql.h: Format migration procedure like other comments. Add a
description of NVT selectors.
Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c 2009-11-17 20:42:12 UTC (rev 5882)
+++ trunk/openvas-manager/src/omp.c 2009-11-17 22:14:21 UTC (rev 5883)
@@ -3259,6 +3259,10 @@
pos = pos2;
}
}
+ else if (value
+ && type
+ && (strcmp (type, "password") == 0))
+ SEND_TO_CLIENT_OR_FAIL ("<value></value>");
else
SENDF_TO_CLIENT_OR_FAIL
("<value>%s</value>", value ? value : "");
@@ -6264,6 +6268,8 @@
pos = pos2;
}
}
+ else if (type && (strcmp (type, "password") == 0))
+ SEND_TO_CLIENT_OR_FAIL ("<value></value>");
else
SENDF_TO_CLIENT_OR_FAIL ("<value>%s</value>",
value ? value : "");
More information about the Openvas-commits
mailing list