]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: SSL_ERROR_ZERO_RETURN returns CO_ER_SSL_EMPTY
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 26 Jun 2023 17:08:00 +0000 (19:08 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 26 Jun 2023 17:10:24 +0000 (19:10 +0200)
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

index 9af57cce1accfe948c657127717c7af1e2e2f190..d075333a65c7304efcbe728c5e0974934a561ec4 100644 (file)
@@ -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;
 
                }