From 629f75061c8a8bc90d8ab9ff27496b05850bdbe6 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 31 Dec 2011 09:03:31 +0100 Subject: [PATCH] Fix seg fault in plugin event loop --- bacula/src/filed/fd_plugins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index 210f931827..978b10b99c 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -216,7 +216,7 @@ void generate_plugin_event(JCR *jcr, bEventType eventType, void *value) continue; } plugin_ctx = &plugin_ctx_list[i++]; - if (is_plugin_disabled(plugin_ctx)) { + if (!plugin_ctx || is_plugin_disabled(plugin_ctx)) { continue; } rc = plug_func(plugin)->handlePluginEvent(plugin_ctx, &event, value); -- 2.39.5