mirror of https://github.com/Icinga/icinga2.git
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;
|
||||
|
||||
/* 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) {
|
||||
case TlsActionRead:
|
||||
do {
|
||||
|
|
Loading…
Reference in New Issue