diff options
author | Jose <pepone@users.noreply.github.com> | 2022-11-03 17:25:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 17:25:29 +0100 |
commit | 0c3c17c26f5fe1c48cd99b388318dbc33fb94263 (patch) | |
tree | 0b276e0c81cbeb3016dc0e9dbfeb8bc9de89b5a9 /cpp/src | |
parent | Python 3.11 build fixes (#1394) (diff) | |
download | ice-0c3c17c26f5fe1c48cd99b388318dbc33fb94263.tar.bz2 ice-0c3c17c26f5fe1c48cd99b388318dbc33fb94263.tar.xz ice-0c3c17c26f5fe1c48cd99b388318dbc33fb94263.zip |
Fix missing error description for OpenSSL protocol error (#1392)
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IceSSL/OpenSSLTransceiverI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/IceSSL/OpenSSLTransceiverI.cpp b/cpp/src/IceSSL/OpenSSLTransceiverI.cpp index 3148bd155e3..c170e2f389b 100644 --- a/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +++ b/cpp/src/IceSSL/OpenSSLTransceiverI.cpp @@ -760,8 +760,9 @@ OpenSSL::TransceiverI::read(IceInternal::Buffer& buf) case SSL_ERROR_SSL: { #if defined(SSL_R_UNEXPECTED_EOF_WHILE_READING) - if (SSL_R_UNEXPECTED_EOF_WHILE_READING == ERR_GET_REASON(ERR_get_error())) + if (SSL_R_UNEXPECTED_EOF_WHILE_READING == ERR_GET_REASON(ERR_peek_error())) { + ERR_clear_error(); throw ConnectionLostException(__FILE__, __LINE__, 0); } else |