summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Network.cpp')
-rw-r--r--cpp/src/Ice/Network.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp
index 3d9c77a3271..d2f35294cc7 100644
--- a/cpp/src/Ice/Network.cpp
+++ b/cpp/src/Ice/Network.cpp
@@ -606,6 +606,7 @@ IceInternal::getAddress(const string& host, int port, struct sockaddr_in& addr)
{
DNSException ex(__FILE__, __LINE__);
ex.error = getDNSErrno();
+ ex.host = host;
throw ex;
}
@@ -644,6 +645,7 @@ IceInternal::getLocalHost(bool numeric)
{
DNSException ex(__FILE__, __LINE__);
ex.error = getDNSErrno();
+ ex.host = host;
throw ex;
}