summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-14 22:03:52 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-03-14 22:03:52 +0000
commitdde1077aab9e375fda86f1e36956917d46aa0b81 (patch)
treef9c3c04f52f0661c099b1a61b5a4b11921ab7fe5 /ace
parentf3bbd3823a7da4aab8f90699c09ecfad83c17fd0 (diff)
downloadATCD-dde1077aab9e375fda86f1e36956917d46aa0b81.tar.gz
(get_host_name): on Chorus, save errno in error so that it gets
propagated back to the caller.
Diffstat (limited to 'ace')
-rw-r--r--ace/INET_Addr.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ace/INET_Addr.cpp b/ace/INET_Addr.cpp
index 2fe0a3c2436..430315000a1 100644
--- a/ace/INET_Addr.cpp
+++ b/ace/INET_Addr.cpp
@@ -399,6 +399,9 @@ ACE_INET_Addr::get_host_name (ASYS_TCHAR hostname[], size_t len) const
hostent *hp = ACE_OS::gethostbyaddr ((char *) &this->inet_addr_.sin_addr,
a_len,
this->addr_type_);
+ if (!hp)
+ error = errno; // So that the errno gets propagated back; it is
+ // loaded from error below.
#else
hostent hentry;
ACE_HOSTENT_DATA buf;