Open mr-sven opened 6 years ago
In the file mqtt/mqtt_cmd.c the commands for MQTTCMD_Lwt and MQTTCMD_Subscribe loads wrong command argument length: Line 96:
mqtt/mqtt_cmd.c
MQTTCMD_Lwt
MQTTCMD_Subscribe
- cmdPopArg(&req, (uint8_t*)&client->connect_info.will_qos, 4); + cmdPopArg(&req, (uint8_t*)&client->connect_info.will_qos, sizeof(client->connect_info.will_qos));
Line 99:
- cmdPopArg(&req, (uint8_t*)&client->connect_info.will_retain, 4); + cmdPopArg(&req, (uint8_t*)&client->connect_info.will_retain, sizeof(client->connect_info.will_retain));
Line 180:
- cmdPopArg(&req, (uint8_t*)&qos, 4); + cmdPopArg(&req, (uint8_t*)&qos, sizeof(qos));
In MQTTCMD_Publish the values loaded correct using sizeof.
MQTTCMD_Publish
sizeof
Regards Sven
In the file
mqtt/mqtt_cmd.c
the commands forMQTTCMD_Lwt
andMQTTCMD_Subscribe
loads wrong command argument length: Line 96:Line 99:
Line 180:
In
MQTTCMD_Publish
the values loaded correct usingsizeof
.Regards Sven