From 62e9fd1e6b8e29d187f771f82820a3070bec0156 Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Wed, 4 Jul 2018 12:43:10 +0700 Subject: [PATCH] core: Set plugin name in context when plugin is autoloaded --- src/daemon/configfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/daemon/configfile.c b/src/daemon/configfile.c index d9038002..8750bef8 100644 --- a/src/daemon/configfile.c +++ b/src/daemon/configfile.c @@ -381,6 +381,7 @@ static int dispatch_block_plugin(oconfig_item_t *ci) { /* default to the global interval set before loading this plugin */ ctx.interval = cf_get_default_interval(); + ctx.name = strdup(name); old_ctx = plugin_set_ctx(ctx); status = plugin_load(name, /* flags = */ false); -- 2.11.0