From 6e0db49c89716a354ed30ff1699a4ea6473d98f7 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 30 Sep 2008 08:14:40 +0000 Subject: [PATCH] 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 --- bacula/src/filed/fd_plugins.c | 6 ++++-- bacula/technotes-2.5 | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) 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. -- 2.39.5