summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/SecureTransportTransceiverI.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-10-20 10:26:19 +0200
committerJose <jose@zeroc.com>2014-10-20 10:26:19 +0200
commit75e063aa116287f555894b6468fdf053e263b17b (patch)
treee6cc6b0fdebde9bca90d40f7b270e1e880344832 /cpp/src/IceSSL/SecureTransportTransceiverI.cpp
parentfirst round of RPM changes for 3.6 (diff)
downloadice-75e063aa116287f555894b6468fdf053e263b17b.tar.bz2
ice-75e063aa116287f555894b6468fdf053e263b17b.tar.xz
ice-75e063aa116287f555894b6468fdf053e263b17b.zip
Fixed (ICE-5695) - IceSSL: misleading exception
Diffstat (limited to 'cpp/src/IceSSL/SecureTransportTransceiverI.cpp')
-rw-r--r--cpp/src/IceSSL/SecureTransportTransceiverI.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/cpp/src/IceSSL/SecureTransportTransceiverI.cpp b/cpp/src/IceSSL/SecureTransportTransceiverI.cpp
index d5e4f039eeb..38f9e4cc70a 100644
--- a/cpp/src/IceSSL/SecureTransportTransceiverI.cpp
+++ b/cpp/src/IceSSL/SecureTransportTransceiverI.cpp
@@ -418,14 +418,8 @@ IceSSL::TransceiverI::read(IceInternal::Buffer& buf, bool&)
return IceInternal::SocketOperationRead;
}
- if(err == errSSLClosedGraceful || err == errSSLClosedAbort ||
- err == errSSLPeerBadRecordMac || err == errSSLPeerDecryptionFail)
+ if(err == errSSLClosedGraceful || err == errSSLClosedAbort)
{
- //
- // Forcefully closing a connection can result in SSLRead reporting
- // "decryption failed or bad record mac". We trap that error and
- // treat it as the loss of a connection.
- //
throw ConnectionLostException(__FILE__, __LINE__, 0);
}