diff options
author | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-11-18 01:06:01 +0000 |
---|---|---|
committer | bala <bala@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-11-18 01:06:01 +0000 |
commit | 37ff1f1fa522f473660c8835146baa6bce0bde0b (patch) | |
tree | a273d717e53415cf447e2f25aabfa4af170297c3 /ace/INET_Addr.cpp | |
parent | b77251606060cbb2f7798495261c91be78675a49 (diff) | |
download | ATCD-37ff1f1fa522f473660c8835146baa6bce0bde0b.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; } |