Fix `mosquitto_pub -l` not handling zero length input.

Closes #1302. Thanks to Marcus Watkins.
pull/1600/head
Roger A. Light 6 years ago
parent e4cd0cfcf5
commit 6d8f9781a8

@ -45,6 +45,7 @@ Clients:
- Fix MQTT v5 clients not being able to specify a password without a username. - Fix MQTT v5 clients not being able to specify a password without a username.
Closes #1274. Closes #1274.
- Fix `mosquitto_pub -l` not handling network failures. Closes #1152. - 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. - Fix double free on exit in mosquitto_pub. Closes #1280.
Documentation: Documentation:

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

Loading…
Cancel
Save