summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>1999-05-25 18:50:02 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>1999-05-25 18:50:02 +0000
commit0222aac355ea43a21a4ca3d8e3a50d2c754b6387 (patch)
treeffb58fdc13c6ba7c0e9b61f9891f2f4603582e93
parent889680383855d1cc889a4f73fd18eafe5900ddf9 (diff)
downloadATCD-0222aac355ea43a21a4ca3d8e3a50d2c754b6387.tar.gz
* ace/LSOCK_Acceptor.cpp (get_local_addr):
Only the base class members of ACE_UNIX_Addr were being copied since the assignment lacked a dynamic cast. Thanks to Carlos and Irfan for clarifying this.
-rw-r--r--ace/LSOCK_Acceptor.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/ace/LSOCK_Acceptor.cpp b/ace/LSOCK_Acceptor.cpp
index 947c8318523..1e6b696eeda 100644
--- a/ace/LSOCK_Acceptor.cpp
+++ b/ace/LSOCK_Acceptor.cpp
@@ -20,7 +20,11 @@ int
ACE_LSOCK_Acceptor::get_local_addr (ACE_Addr &a) const
{
ACE_TRACE ("ACE_LSOCK_Acceptor::get_local_addr");
- a = this->local_addr_;
+
+ ACE_UNIX_Addr& target = ACE_dynamic_cast (ACE_UNIX_Addr &, a);
+
+ target = this->local_addr_;
+
return 0;
}