From c96edcddbda27e8f1fa6ad10bca4ee8ef2a134a2 Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Sat, 23 Oct 2021 18:04:11 +0200 Subject: [PATCH] Fix not returning Mosquitto plugin result --- authplugin.cpp | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/authplugin.cpp b/authplugin.cpp index 274c001..2155e5c 100644 --- a/authplugin.cpp +++ b/authplugin.cpp @@ -313,6 +313,8 @@ AuthResult Authentication::aclCheck(const std::string &clientid, const std::stri { logger->logf(LOG_ERR, "ACL check by plugin returned error for topic '%s'. If it didn't log anything, we don't know what it was.", topic.c_str()); } + + return result_; } else if (pluginVersion == PluginVersion::FlashMQv1) { @@ -362,6 +364,8 @@ AuthResult Authentication::unPwdCheck(const std::string &username, const std::st { logger->logf(LOG_ERR, "Username+password check by plugin returned error for user '%s'. If it didn't log anything, we don't know what it was.", username.c_str()); } + + return r; } else if (pluginVersion == PluginVersion::FlashMQv1) { -- libgit2 0.21.4