From fcb8bc0b9b1e981afb0fa2f4f12e3808ca3103c0 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Wed, 28 Oct 2020 11:23:48 +0000 Subject: [PATCH] Fix use of incorrect callback list. --- src/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin.c b/src/plugin.c index 4ab346a7..9b127440 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -168,7 +168,7 @@ void plugin__handle_tick(struct mosquitto_db *db) opts = &db->config->security_options; memset(&event_data, 0, sizeof(event_data)); - DL_FOREACH(opts->plugin_callbacks.message, cb_base){ + DL_FOREACH(opts->plugin_callbacks.tick, cb_base){ cb_base->cb(MOSQ_EVT_TICK, &event_data, cb_base->userdata); } }