From 26f747e0ac003b131857c0e7ea3a9849ce9f1286 Mon Sep 17 00:00:00 2001 From: Abilio Marques Date: Tue, 11 Jan 2022 19:24:34 +0100 Subject: [PATCH] fix confusing log message on connack error Signed-off-by: Abilio Marques --- src/handle_connack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handle_connack.c b/src/handle_connack.c index f4251fe9..e6418662 100644 --- a/src/handle_connack.c +++ b/src/handle_connack.c @@ -163,7 +163,7 @@ int handle__connack(struct mosquitto *context) log__printf(NULL, MOSQ_LOG_ERR, "Connection Refused: broker unavailable"); return MOSQ_ERR_CONN_LOST; case CONNACK_REFUSED_BAD_USERNAME_PASSWORD: - log__printf(NULL, MOSQ_LOG_ERR, "Connection Refused: broker unavailable"); + log__printf(NULL, MOSQ_LOG_ERR, "Connection Refused: bad user name or password"); return MOSQ_ERR_CONN_LOST; case CONNACK_REFUSED_NOT_AUTHORIZED: log__printf(NULL, MOSQ_LOG_ERR, "Connection Refused: not authorised");