Skip to content

Commit

Permalink
Fix mosquitto_pub -l not handling zero length input.
Browse files Browse the repository at this point in the history
Closes #1302. Thanks to Marcus Watkins.
  • Loading branch information
ralight committed Jun 6, 2019
1 parent 9dc319c commit c685b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ Clients:
- Fix MQTT v5 clients not being able to specify a password without a username.
Closes #1274.
- Fix `mosquitto_pub -l` not handling network failures. Closes #1152.
- Fix `mosquitto_pub -l` not handling zero length input. Closes #1302.
- Fix double free on exit in mosquitto_pub. Closes #1280.

Documentation:
Expand Down
2 changes: 1 addition & 1 deletion client/pub_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ and the Eclipse Distribution License is available at

/* Global variables for use in callbacks. See sub_client.c for an example of
* using a struct to hold variables for use in callbacks. */
int mid_sent = 0;
int mid_sent = -1;
int status = STATUS_CONNECTING;
struct mosq_config cfg;

Expand Down

0 comments on commit c685b7e

Please sign in to comment.