wolfSSL / wolfMQTT

wolfMQTT is a small, fast, portable MQTT client implementation, including support for TLS 1.3.
https://www.wolfssl.com
GNU General Public License v2.0
521 stars 155 forks source link

Fix to release connect ack props #301

Closed embhorn closed 2 years ago

embhorn commented 2 years ago

Use do_props = 1 when calling MqttClient_DecodePacket from MqttClient_WaitType to free property list allocated for temp packet_obj when decoding packet.

This fixes ZD14434

Tested with this modified mqttsimple test (in ZD ticket). ./configure --disable-tls --enable-v5 --disable-shared --enable-debug CFLAGS="-DMQTT_MAX_PROPS 10"