r11128 - prelude-manager/trunk/src

[email protected]
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
Author: yoann
Date: 2009-04-09 10:23:47 +0200 (Thu, 09 Apr 2009)
New Revision: 11128

Modified:
   prelude-manager/trunk/src/report-plugins.c
Log:
Remove deprecated code, that was allocating an object and never using it.
Thanks Steve Grubb <[email protected]> for reporting this problem (and
running flexelint on the Prelude source)!

Modified: prelude-manager/trunk/src/report-plugins.c
===================================================================
--- prelude-manager/trunk/src/report-plugins.c	2009-04-08 13:09:27 UTC (rev 11127)
+++ prelude-manager/trunk/src/report-plugins.c	2009-04-09 08:23:47 UTC (rev 11128)
@@ -444,7 +444,6 @@
 int report_plugin_activate_failover(const char *plugin)
 {
         int ret;
-        plugin_failover_t *pf;
         char pname[256], iname[256];
         prelude_plugin_instance_t *pi;
 
@@ -456,11 +455,5 @@
                 return -1;
         }
 
-        pf = calloc(1, sizeof(*pf));
-        if ( ! pf ) {
-                prelude_log(PRELUDE_LOG_ERR, "memory exhausted.\n");
-                return -1;
-        }
-
         return setup_plugin_failover(pi);
 }

_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.