From: William Lallemand Date: Mon, 26 Jun 2023 17:08:00 +0000 (+0200) Subject: BUG/MINOR: ssl: SSL_ERROR_ZERO_RETURN returns CO_ER_SSL_EMPTY X-Git-Tag: v2.9-dev1~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3388b234659aecacfb949e4925ba9461f17916e4;p=thirdparty%2Fhaproxy.git BUG/MINOR: ssl: SSL_ERROR_ZERO_RETURN returns CO_ER_SSL_EMPTY Return a more acurate error than the previous patch, CO_ER_SSL_EMPTY is the code for "Connection closed during SSL handshake" which is more precise than CO_ER_SSL_ABORT ("Connection error during SSL handshake"). No backport needed. --- diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 9af57cce1a..d075333a65 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -5989,7 +5989,7 @@ check_error: /* The peer has closed the SSL session for writing by * sending a close_notify alert */ conn_ctrl_drain(conn); - conn->err_code = CO_ER_SSL_ABORT; + conn->err_code = CO_ER_SSL_EMPTY; goto out_error; }