Fix confusing "out of memory" error.

This happens when a client is kicked in the dynamic security plugin.

Closes #2525. Thanks to sezanzeb.
This commit is contained in:
Roger A. Light 2022-08-12 08:17:17 +01:00
parent c4664f08ac
commit 775bd2effd
2 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,8 @@ Broker:
- Fix some PUBLISH messages not being counted in $SYS stats. Closes #2448.
- Fix incorrect return code being sent in DISCONNECT when a client session is
taken over. Closes #2607.
- Fix confusing "out of memory" error when a client is kicked in the dynamic
security plugin. Closes #2525.
Client library:
- Fix threads library detection on Windows under cmake. Bumps the minimum

View File

@ -65,9 +65,9 @@ int control__process(struct mosquitto *context, struct mosquitto_msg_store *stor
}
if(stored->qos == 1){
if(send__puback(context, stored->source_mid, MQTT_RC_SUCCESS, properties)) rc = 1;
rc = send__puback(context, stored->source_mid, MQTT_RC_SUCCESS, properties);
}else if(stored->qos == 2){
if(send__pubrec(context, stored->source_mid, MQTT_RC_SUCCESS, properties)) rc = 1;
rc = send__pubrec(context, stored->source_mid, MQTT_RC_SUCCESS, properties);
}
mosquitto_property_free_all(&properties);