diff options
author | Jose <pepone@users.noreply.github.com> | 2024-05-29 15:26:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-29 15:26:02 +0200 |
commit | 343d04284023f048a112aaf8c143db5f4d07cb0b (patch) | |
tree | b5d65a5dea697fb57753342cd1fe2b2a1bbd691c /cpp/src | |
parent | Regenerate java-compact certs (#2053) (diff) | |
download | ice-343d04284023f048a112aaf8c143db5f4d07cb0b.tar.bz2 ice-343d04284023f048a112aaf8c143db5f4d07cb0b.tar.xz ice-343d04284023f048a112aaf8c143db5f4d07cb0b.zip |
Fix bogus call to ERR_get_error - Fix #2153 (#2231)
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/IceSSL/OpenSSLTransceiverI.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/IceSSL/OpenSSLTransceiverI.cpp b/cpp/src/IceSSL/OpenSSLTransceiverI.cpp index c170e2f389b..9c226e0f8dd 100644 --- a/cpp/src/IceSSL/OpenSSLTransceiverI.cpp +++ b/cpp/src/IceSSL/OpenSSLTransceiverI.cpp @@ -400,7 +400,7 @@ OpenSSL::TransceiverI::initialize(IceInternal::Buffer& readBuffer, IceInternal:: 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())) { throw ConnectionLostException(__FILE__, __LINE__, 0); } |