From 952044e85fb995eb35369133eaa4cffeaf3a7595 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Mon, 24 May 2021 18:36:30 +0100 Subject: [PATCH] Unregister MOSQ_EVT_CONNECT plugin event --- src/plugin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugin.c b/src/plugin.c index 3fcbce3b..6091b6f9 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -341,6 +341,9 @@ int mosquitto_callback_unregister( case MOSQ_EVT_DISCONNECT: cb_base = &security_options->plugin_callbacks.disconnect; break; + case MOSQ_EVT_CONNECT: + cb_base = &security_options->plugin_callbacks.connect; + break; default: return MOSQ_ERR_NOT_SUPPORTED; break;