mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-08-18 01:48:32 +08:00
Initialise plugin disconnect data for per_listener_settings=true
This commit is contained in:
+1
-2
@@ -116,9 +116,8 @@ void plugin__handle_disconnect(struct mosquitto *context, int reason)
|
||||
opts = &context->listener->security_options;
|
||||
}else{
|
||||
opts = &db.config->security_options;
|
||||
memset(&event_data, 0, sizeof(event_data));
|
||||
}
|
||||
|
||||
memset(&event_data, 0, sizeof(event_data));
|
||||
event_data.client = context;
|
||||
event_data.reason = reason;
|
||||
DL_FOREACH(opts->plugin_callbacks.disconnect, cb_base){
|
||||
|
||||
Reference in New Issue
Block a user