diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/Network.cpp | 10 | ||||
-rw-r--r-- | cpp/src/Ice/Network.h | 2 |
2 files changed, 10 insertions, 2 deletions
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp index b1a921220e2..fb4189d7e6e 100644 --- a/cpp/src/Ice/Network.cpp +++ b/cpp/src/Ice/Network.cpp @@ -549,14 +549,20 @@ IceUtil::Shared* IceInternal::upCast(NetworkProxy* p) { return p; } IceUtil::Shared* IceInternal::upCast(SOCKSNetworkProxy* p) { return p; } IceInternal::SOCKSNetworkProxy::SOCKSNetworkProxy(const string& host, int port) : - _host(host), _port(port), _haveAddress(false) + _host(host), _port(port) { memset(&_address, 0, sizeof(_address)); +#ifndef NDEBUG + _haveAddress = false; +#endif } IceInternal::SOCKSNetworkProxy::SOCKSNetworkProxy(const Address& addr) : - _port(0), _address(addr), _haveAddress(true) + _port(0), _address(addr) { +#ifndef NDEBUG + _haveAddress = true; +#endif } void diff --git a/cpp/src/Ice/Network.h b/cpp/src/Ice/Network.h index 55036bcc986..fe606f8fc2d 100644 --- a/cpp/src/Ice/Network.h +++ b/cpp/src/Ice/Network.h @@ -250,7 +250,9 @@ private: std::string _host; int _port; Address _address; +#ifndef NDEBUG bool _haveAddress; +#endif }; ICE_API bool noMoreFds(int); |