[Openvas-commits] r1310 - in trunk/openvas-libraries: . libopenvas

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Sep 9 15:25:57 CEST 2008


Author: mwiegand
Date: 2008-09-09 15:25:56 +0200 (Tue, 09 Sep 2008)
New Revision: 1310

Modified:
   trunk/openvas-libraries/ChangeLog
   trunk/openvas-libraries/libopenvas/plugutils.c
Log:
* libopenvas/plugutils.c (mark_successful_plugin, mark_post): Use OIDs
instead of IDs for logging messages and plugin success in KB.


Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog	2008-09-09 12:55:04 UTC (rev 1309)
+++ trunk/openvas-libraries/ChangeLog	2008-09-09 13:25:56 UTC (rev 1310)
@@ -1,5 +1,10 @@
 2008-09-09  Michael Wiegand <michael.wiegand at intevation.de>
 
+	* libopenvas/plugutils.c (mark_successful_plugin, mark_post): Use OIDs
+	instead of IDs for logging messages and plugin success in KB.
+
+2008-09-09  Michael Wiegand <michael.wiegand at intevation.de>
+
 	* libopenvas/plugutils.c (proto_post_wrapped): Use OIDs instead of IDs,
 	removed obsolete code.
 

Modified: trunk/openvas-libraries/libopenvas/plugutils.c
===================================================================
--- trunk/openvas-libraries/libopenvas/plugutils.c	2008-09-09 12:55:04 UTC (rev 1309)
+++ trunk/openvas-libraries/libopenvas/plugutils.c	2008-09-09 13:25:56 UTC (rev 1310)
@@ -981,12 +981,12 @@
 mark_successful_plugin(desc)
  struct arglist * desc;
 {
- int id = plug_get_id(desc);
+ char * oid = plug_get_oid(desc);
  char data[512];
  
 
  bzero(data, sizeof(data));
- snprintf(data, sizeof(data), "Success/%d", id);
+ snprintf(data, sizeof(data), "Success/%s", oid);
  plug_set_key(desc, data, ARG_INT,(void*)1);
 }
 
@@ -1001,7 +1001,7 @@
  if(strlen(action) > (sizeof(entry_name) - 20))
   return;
   
- snprintf(entry_name, sizeof(entry_name), "SentData/%d/%s", plug_get_id(desc), action);
+ snprintf(entry_name, sizeof(entry_name), "SentData/%s/%s", plug_get_oid(desc), action);
  plug_set_key(desc, entry_name, ARG_STRING, content);
 }
 



More information about the Openvas-commits mailing list