Skip to content

Commit 9d8b8b8

Browse files
Copilotithewei
andcommitted
Fix CONNECT comment: will_properties uses varint prefix, not 2-byte
Co-authored-by: ithewei <26049660+ithewei@users.noreply.github.com>
1 parent 1e669cc commit 9d8b8b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mqtt/mqtt_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static int mqtt_v5_skip_properties(unsigned char** pp, unsigned char* end) {
8585
* 2 + protocol_name + 1 protocol_version + 1 conn_flags + 2 keepalive +
8686
* [v5: properties] +
8787
* 2 + [client_id] +
88-
* [v5: 2 + will_properties] + [2 + will_topic + 2 + will_payload] +
88+
* [v5: varint + will_properties] + [2 + will_topic + 2 + will_payload] +
8989
* [2 + username] + [2 + password]
9090
*/
9191
static int mqtt_client_login(mqtt_client_t* cli) {

0 commit comments

Comments
 (0)