Fix example plugin incorrect callback unregister.

Closes #2673. Thanks to Karl Palsson.
This commit is contained in:
Roger A. Light 2023-04-01 22:35:51 +01:00
parent 655f9e58b7
commit 4f9c5567ba

View File

@ -106,5 +106,5 @@ int mosquitto_plugin_cleanup(void *user_data, struct mosquitto_opt *opts, int op
UNUSED(opts);
UNUSED(opt_count);
return mosquitto_callback_unregister(mosq_pid, MOSQ_EVT_MESSAGE, basic_auth_callback, NULL);
return mosquitto_callback_unregister(mosq_pid, MOSQ_EVT_BASIC_AUTH, basic_auth_callback, NULL);
}