Return MOSQ_ERR_NOT_SUPPORTED on unsupported plugin event.

This commit is contained in:
Roger A. Light 2020-10-26 11:41:33 +00:00
parent b36247cb10
commit 3b99fbbe8c

View File

@ -224,7 +224,7 @@ int mosquitto_callback_register(
cb_base = &security_options->plugin_callbacks.tick;
break;
default:
return MOSQ_ERR_INVAL;
return MOSQ_ERR_NOT_SUPPORTED;
break;
}