diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-01-17 09:54:04 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-01-17 09:54:04 +0000 |
commit | 1260e1ca55115a041db0101e262748abc6b96966 (patch) | |
tree | 574c82460671e534eec0e125561384fa0ebc8440 /cpp/src/IceSSL/Util.cpp | |
parent | http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1673 (diff) | |
download | ice-1260e1ca55115a041db0101e262748abc6b96966.tar.bz2 ice-1260e1ca55115a041db0101e262748abc6b96966.tar.xz ice-1260e1ca55115a041db0101e262748abc6b96966.zip |
Fixed bug 1674
Diffstat (limited to 'cpp/src/IceSSL/Util.cpp')
-rw-r--r-- | cpp/src/IceSSL/Util.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/src/IceSSL/Util.cpp b/cpp/src/IceSSL/Util.cpp index 5cc8f076035..1754bd62654 100644 --- a/cpp/src/IceSSL/Util.cpp +++ b/cpp/src/IceSSL/Util.cpp @@ -488,11 +488,12 @@ IceSSL::populateConnectionInfo(SSL* ssl, SOCKET fd, const string& adapterName, b IceInternal::fdToLocalAddress(fd, info.localAddr); -#ifndef NDEBUG - bool peerConnected = -#endif - IceInternal::fdToRemoteAddress(fd, info.remoteAddr); - assert(peerConnected); + if(!IceInternal::fdToRemoteAddress(fd, info.remoteAddr)) + { + SocketException ex(__FILE__, __LINE__); + ex.error = IceInternal::getSocketErrno(); + throw ex; + } return info; } |