From: Kern Sibbald Date: Tue, 30 Sep 2008 08:14:40 +0000 (+0000) Subject: Another attempt to fix the endRestoreFile plugin bug noted below X-Git-Tag: Release-7.0.0~4065 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22ede583f311dbb6782a69fc2b84195555010ed0;p=bacula%2Fbacula Another attempt to fix the endRestoreFile plugin bug noted below git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7667 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index f0e774d617..1fc546354d 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -278,8 +278,10 @@ void plugin_name_stream(JCR *jcr, char *name) /* * End of plugin data, notify plugin, then clear flags */ - plugin = (Plugin *)jcr->plugin; - plug_func(plugin)->endRestoreFile((bpContext *)jcr->plugin_ctx); + if (jcr->plugin) { + plugin = (Plugin *)jcr->plugin; + plug_func(plugin)->endRestoreFile((bpContext *)jcr->plugin_ctx); + } jcr->plugin_ctx = NULL; jcr->plugin = NULL; goto bail_out; diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index ebc925f1da..0ca060d9c0 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -17,6 +17,8 @@ dbdriver remove reader/writer in FOPTS???? General: +30Sep08 +kes Another attempt to fix the endRestoreFile plugin bug noted below. 29Sep08 kes Apply dbi driver patch from Joao. kes Correct a bug in passing the context to the endRestoreFile() plugin command.