Commit c96edcddbda27e8f1fa6ad10bca4ee8ef2a134a2

Authored by Wiebe Cazemier
1 parent 7a90acf8

Fix not returning Mosquitto plugin result

Showing 1 changed file with 4 additions and 0 deletions
authplugin.cpp
@@ -313,6 +313,8 @@ AuthResult Authentication::aclCheck(const std::string &clientid, const std::stri @@ -313,6 +313,8 @@ AuthResult Authentication::aclCheck(const std::string &clientid, const std::stri
313 { 313 {
314 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()); 314 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());
315 } 315 }
  316 +
  317 + return result_;
316 } 318 }
317 else if (pluginVersion == PluginVersion::FlashMQv1) 319 else if (pluginVersion == PluginVersion::FlashMQv1)
318 { 320 {
@@ -362,6 +364,8 @@ AuthResult Authentication::unPwdCheck(const std::string &username, const std::st @@ -362,6 +364,8 @@ AuthResult Authentication::unPwdCheck(const std::string &username, const std::st
362 { 364 {
363 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()); 365 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());
364 } 366 }
  367 +
  368 + return r;
365 } 369 }
366 else if (pluginVersion == PluginVersion::FlashMQv1) 370 else if (pluginVersion == PluginVersion::FlashMQv1)
367 { 371 {