]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: ssl: Prevent ssl error from affecting other connections.
authorEmeric Brun <ebrun@exceliance.fr>
Fri, 14 Dec 2012 10:21:13 +0000 (11:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 14 Dec 2012 14:15:53 +0000 (15:15 +0100)
commit644cde05f6f8bb031e5a57ac4eafe4877f7adf66
treed48e80a797ec89869f791b7210e215fb6cddc4ad
parentf26b252ee4190415d80363a9487477ee476184b0
BUG/MEDIUM: ssl: Prevent ssl error from affecting other connections.

J. Maurice reported that ssllabs.com test affects unrelated
legitimate traffic and cause SSL errors and broken connections.

Sometimes openssl store read/write/handshake errors in a global stack. This
stack is not specific to the current session. Openssl API does not clean the
stack at the beginning of a new read/write. And the function used to retrieve
error ID after read/write, returns the generic error SSL_ERROR_SSL if the
global stack is not empty.

The fix consists in cleaning the errors stack after read/write/handshake
errors.
src/ssl_sock.c