Fix confusing message on TLS certificate verification.

Closes #2746. Thanks to Akos Vandra-Meyer.
This commit is contained in:
Roger A. Light 2023-04-01 17:49:58 +01:00
parent 1195dd991e
commit 1bf753e773
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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;
}