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

Refactor of write length #250

Closed dgarske closed 2 years ago

dgarske commented 2 years ago

Specifically fixes write case use of read client->packet.buf_len.

embhorn commented 2 years ago

Jenkins reported a valid build error with default config:


./configure CPPFLAGS="-I./wolfssl" LDFLAGS="-L./wolfssl/src/.libs/" --enable-nonblock
src/mqtt_client.c: In function ‘MqttClient_Connect’:
src/mqtt_client.c:1179:13: error: unused variable ‘len’ [-Werror=unused-variable]
     int rc, len = 0;