Fix incorrect topic-alias property value in mosquitto_sub json output.

This commit is contained in:
Roger A. Light 2022-12-22 13:21:42 +00:00
parent 62b68364c7
commit 0fb4e2bf6a
2 changed files with 5 additions and 1 deletions

View File

@ -6,6 +6,10 @@ Broker:
- Fix std* files not being redirected when daemonising, when built with
assertions removed. Closes #2708.
Clients:
- Fix incorrect topic-alias property value in mosquitto_sub json output.
2.0.15 - 2022-08-16
===================

View File

@ -210,7 +210,7 @@ static int json_print_properties(cJSON *root, const mosquitto_property *properti
break;
case MQTT_PROP_TOPIC_ALIAS:
mosquitto_property_read_int16(prop, MQTT_PROP_MESSAGE_EXPIRY_INTERVAL, &i16value, false);
mosquitto_property_read_int16(prop, MQTT_PROP_TOPIC_ALIAS, &i16value, false);
tmp = cJSON_CreateNumber(i16value);
break;