summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjha <jha@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-06-14 19:42:15 +0000
committerjha <jha@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-06-14 19:42:15 +0000
commitcf11cf693224044f52d4fc38a61e2d796a759468 (patch)
treef7b7dac2f225ea49bc438b77d2bae77797fe5668
parent0eb5cb12c12b4ffee11ab3e0fabad7a9167ccf8e (diff)
downloadATCD-cf11cf693224044f52d4fc38a61e2d796a759468.tar.gz
Fixed get_host_addr bug
-rw-r--r--ace/INET_Addr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ace/INET_Addr.cpp b/ace/INET_Addr.cpp
index e4527b5aa76..3681d54e8f4 100644
--- a/ace/INET_Addr.cpp
+++ b/ace/INET_Addr.cpp
@@ -704,6 +704,7 @@ ACE_INET_Addr::get_host_addr (char *dst, int size) const
if(IN6_IS_ADDR_V4MAPPED(&this->inet_addr_.sin6_addr)) {
ACE_UINT32 addr;
addr = this->get_ip_address();
+ addr = htonl(addr);
return ACE_OS::inet_ntop (AF_INET, (const void*)&addr,dst,size);
}
dst[0] = '[';