From 3388b234659aecacfb949e4925ba9461f17916e4 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Mon, 26 Jun 2023 19:08:00 +0200 Subject: [PATCH] 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. --- src/ssl_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3