mirror of https://github.com/Icinga/icinga2.git
parent
d7fc37b12e
commit
f67a11c183
|
@ -200,8 +200,10 @@ size_t TlsStream::Read(void *buffer, size_t count)
|
||||||
Close();
|
Close();
|
||||||
return count - left;
|
return count - left;
|
||||||
default:
|
default:
|
||||||
|
if (ERR_peek_error() != 0) {
|
||||||
msgbuf << "SSL_read() failed with code " << ERR_peek_error() << ", \"" << ERR_error_string(ERR_peek_error(), errbuf) << "\"";
|
msgbuf << "SSL_read() failed with code " << ERR_peek_error() << ", \"" << ERR_error_string(ERR_peek_error(), errbuf) << "\"";
|
||||||
Log(LogCritical, "TlsStream", msgbuf.str());
|
Log(LogCritical, "TlsStream", msgbuf.str());
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_THROW_EXCEPTION(openssl_error()
|
BOOST_THROW_EXCEPTION(openssl_error()
|
||||||
<< boost::errinfo_api_function("SSL_read")
|
<< boost::errinfo_api_function("SSL_read")
|
||||||
|
@ -260,8 +262,10 @@ void TlsStream::Write(const void *buffer, size_t count)
|
||||||
Close();
|
Close();
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
|
if (ERR_peek_error() != 0) {
|
||||||
msgbuf << "SSL_write() failed with code " << ERR_peek_error() << ", \"" << ERR_error_string(ERR_peek_error(), errbuf) << "\"";
|
msgbuf << "SSL_write() failed with code " << ERR_peek_error() << ", \"" << ERR_error_string(ERR_peek_error(), errbuf) << "\"";
|
||||||
Log(LogCritical, "TlsStream", msgbuf.str());
|
Log(LogCritical, "TlsStream", msgbuf.str());
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_THROW_EXCEPTION(openssl_error()
|
BOOST_THROW_EXCEPTION(openssl_error()
|
||||||
<< boost::errinfo_api_function("SSL_write")
|
<< boost::errinfo_api_function("SSL_write")
|
||||||
|
|
Loading…
Reference in New Issue