diff options
author | bala <balanatarajan@users.noreply.github.com> | 2003-11-18 01:06:01 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2003-11-18 01:06:01 +0000 |
commit | d5a072640fe05f429708fae149a1a920adea3b70 (patch) | |
tree | a273d717e53415cf447e2f25aabfa4af170297c3 /ace/INET_Addr.cpp | |
parent | 7237602b21d669120babfa15d08638ef09748d13 (diff) | |
download | ATCD-d5a072640fe05f429708fae149a1a920adea3b70.tar.gz |
ChangeLogTag:Mon Nov 17 18:55:49 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
Diffstat (limited to 'ace/INET_Addr.cpp')
-rw-r--r-- | ace/INET_Addr.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ace/INET_Addr.cpp b/ace/INET_Addr.cpp index 593a0a554f1..7edf5f4deab 100644 --- a/ace/INET_Addr.cpp +++ b/ace/INET_Addr.cpp @@ -119,8 +119,15 @@ ACE_INET_Addr::set (const ACE_INET_Addr &sa) // Ugh, this is really a base class, so don't copy it. ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_)); else - // It's ok to make the copy. - ACE_OS::memcpy (&this->inet_addr_, &sa.inet_addr_, sa.get_size ()); + { + // It's ok to make the copy. + ACE_OS::memcpy (&this->inet_addr_, + &sa.inet_addr_, + sa.get_size ()); + + this->set_type (sa.get_type()); + this->set_size (sa.get_size()); + } return 0; } |