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:
parent
c4664f08ac
commit
775bd2effd
@ -18,6 +18,8 @@ Broker:
|
|||||||
- Fix some PUBLISH messages not being counted in $SYS stats. Closes #2448.
|
- 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
|
- Fix incorrect return code being sent in DISCONNECT when a client session is
|
||||||
taken over. Closes #2607.
|
taken over. Closes #2607.
|
||||||
|
- Fix confusing "out of memory" error when a client is kicked in the dynamic
|
||||||
|
security plugin. Closes #2525.
|
||||||
|
|
||||||
Client library:
|
Client library:
|
||||||
- Fix threads library detection on Windows under cmake. Bumps the minimum
|
- Fix threads library detection on Windows under cmake. Bumps the minimum
|
||||||
|
@ -65,9 +65,9 @@ int control__process(struct mosquitto *context, struct mosquitto_msg_store *stor
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(stored->qos == 1){
|
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){
|
}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);
|
mosquitto_property_free_all(&properties);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user