Don't trigger DISCONNECT events for clients that didn't complete connection.

This commit is contained in:
Roger A. Light
2021-09-29 21:04:15 +01:00
parent 88b4b43dee
commit 0f9eb03b3c
+2
View File
@@ -141,6 +141,8 @@ static void plugin__handle_disconnect_single(struct mosquitto__security_options
struct mosquitto_evt_disconnect event_data;
struct mosquitto__callback *cb_base;
if(context->id == NULL) return;
memset(&event_data, 0, sizeof(event_data));
event_data.client = context;
event_data.reason = reason;