From: Kern Sibbald Date: Tue, 26 Feb 2008 15:59:18 +0000 (+0000) Subject: Fix free of plugin_list when none exists X-Git-Tag: Release-3.0.0~1797 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dc8dd10f796e1df763450b1c5fa40db463ad0612;p=bacula%2Fbacula Fix free of plugin_list when none exists git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6492 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/lib/plugins.c b/bacula/src/lib/plugins.c index aa29ed97a5..84ea358ec8 100644 --- a/bacula/src/lib/plugins.c +++ b/bacula/src/lib/plugins.c @@ -34,7 +34,7 @@ #include "plugins.h" /* All loaded plugins */ -alist *plugin_list; +alist *plugin_list = NULL; /* * Create a new plugin "class" entry and enter it in the @@ -165,6 +165,9 @@ void unload_plugins() #ifndef HAVE_WIN32 Plugin *plugin; + if (!plugin_list) { + return; + } foreach_alist(plugin, plugin_list) { /* Shut it down and unload it */ plugin->unloadPlugin(); diff --git a/bacula/src/version.h b/bacula/src/version.h index d6988953a5..f133f9d0ec 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -4,8 +4,8 @@ #undef VERSION #define VERSION "2.3.10" -#define BDATE "24 February 2008" -#define LSMDATE "24Feb08" +#define BDATE "26 February 2008" +#define LSMDATE "26Feb08" #define PROG_COPYRIGHT "Copyright (C) %d-2008 Free Software Foundation Europe e.V.\n" #define BYEAR "2008" /* year for copyright messages in progs */ diff --git a/bacula/technotes-2.3 b/bacula/technotes-2.3 index 9faf969206..ffbb33a2a9 100644 --- a/bacula/technotes-2.3 +++ b/bacula/technotes-2.3 @@ -1,6 +1,8 @@ Technical notes on version 2.3 General: +26Feb08 +kes Fix free of plugin_list when none exists. 25Feb08 ebl Apply accurate project patch. 24Feb08