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.
This commit is contained in:
William Lallemand 2023-06-26 19:08:00 +02:00
parent e8e5762389
commit 3388b23465

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