From 1bf753e773ff009258fa59a94c19cfcb90ec7dd9 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Sat, 1 Apr 2023 17:49:58 +0100 Subject: [PATCH] Fix confusing message on TLS certificate verification. Closes #2746. Thanks to Akos Vandra-Meyer. --- ChangeLog.txt | 1 + lib/packet_mosq.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog.txt b/ChangeLog.txt index 2d19f52c3a..58efc1a72b 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -15,6 +15,7 @@ Client library: Clients: - Fix incorrect topic-alias property value in mosquitto_sub json output. +- Fix confusing message on TLS certificate verification. Closes #2746. 2.0.15 - 2022-08-16 diff --git a/lib/packet_mosq.c b/lib/packet_mosq.c index 80f47168e6..da2a608016 100644 --- a/lib/packet_mosq.c +++ b/lib/packet_mosq.c @@ -268,6 +268,8 @@ int packet__write(struct mosquitto *mosq) return MOSQ_ERR_CONN_LOST; case COMPAT_EINTR: return MOSQ_ERR_SUCCESS; + case EPROTO: + return MOSQ_ERR_TLS; default: return MOSQ_ERR_ERRNO; }