From 2f6f5dbf9d00292e4fc8f0264787c5d34dd60b5e Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 2 Aug 2018 17:06:21 +0100 Subject: [PATCH] Fix problem on Pi caused by unsigned char being default. Found via #849. Signed-off-by: Roger A. Light --- ChangeLog.txt | 2 ++ src/mosquitto_broker_internal.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index cc6f6f52..c8222ffa 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -14,6 +14,8 @@ Broker: just reach it. This was inconsistent in two places. - Fix segfault on startup if bridge CA certificates could not be read. Closes #851. +- Fix problem opening listeners on Pi caused by unsigned char being default. + Found via #849. Library: - Fix some places where return codes were incorrect, including to the diff --git a/src/mosquitto_broker_internal.h b/src/mosquitto_broker_internal.h index 85aff053..4baee9f7 100644 --- a/src/mosquitto_broker_internal.h +++ b/src/mosquitto_broker_internal.h @@ -199,7 +199,7 @@ struct mosquitto__security_options { char *acl_file; struct mosquitto__auth_plugin_config *auth_plugin_configs; int auth_plugin_config_count; - char allow_anonymous; + int8_t allow_anonymous; bool allow_zero_length_clientid; char *auto_id_prefix; int auto_id_prefix_len;