1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

mqtt: fix extra byte on SUBSCRIBE

This commit is contained in:
Sakthi Kannan 2020-09-21 17:04:42 +01:00 committed by Andy Green
parent c8fc7a6f37
commit 4e9f433b7e

View file

@ -104,10 +104,6 @@ lws_mqtt_client_send_connect(struct lws *wsi)
*p++ = 0;
}
if ((c->conn_flags & ~LMQCFT_CLEAN_START) == 0) {
*p++ = 0; /* no properties */
break;
}
if (c->conn_flags & LMQCFT_WILL_FLAG) {
if (lws_mqtt_str_is_not_empty(c->will.topic)) {
lws_ser_wu16be(p, c->will.topic->len);