diff --git a/ChangeLog.txt b/ChangeLog.txt index 2d19f52c..58efc1a7 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 80f47168..da2a6080 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; }