]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: log message non thread safe in SSL Hanshake failure
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 12 Jun 2023 14:23:29 +0000 (16:23 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 12 Jun 2023 14:35:57 +0000 (16:35 +0200)
commit0c9ff0cde451db6fdd2f9f1159e622f1646d5eb1
tree3773dcf7965bf766a12b2e4816e0f27c65adfa28
parent28d17e26b846e485eac36d82da3c5439524240c7
BUG/MINOR: ssl: log message non thread safe in SSL Hanshake failure

It was reported in issue #2181, strange behavior during the new SSL
hanshake failure logs.

Errors were logged with the code 0, which is unknown to OpenSSL.

This patch mades 2 changes:

- It stops using ERR_error_string() when the SSL error code is 0
- It uses ERR_error_string_n() to be thread-safe

Must be backported to 2.8.
src/session.c