mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
Ensure to clear the SSL error queue before calling SSL_{read,write,do_handshake}
fixes #12100
This commit is contained in:
parent
63f83e8bec
commit
9b873d60c2
@ -149,6 +149,11 @@ void TlsStream::OnEvent(int revents)
|
|||||||
|
|
||||||
bool success = false;
|
bool success = false;
|
||||||
|
|
||||||
|
/* Clear error queue for this thread before using SSL_{read,write,do_handshake}.
|
||||||
|
* Otherwise SSL_*_error() does not work reliably.
|
||||||
|
*/
|
||||||
|
ERR_clear_error();
|
||||||
|
|
||||||
switch (m_CurrentAction) {
|
switch (m_CurrentAction) {
|
||||||
case TlsActionRead:
|
case TlsActionRead:
|
||||||
do {
|
do {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user