diff options
author | jha <jha@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-10-08 17:43:15 +0000 |
---|---|---|
committer | jha <jha@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-10-08 17:43:15 +0000 |
commit | ea67a6622146ff75e65b86c8342ac29969a9a814 (patch) | |
tree | a543cb64cb4750bcf52abba5a44c068162c4eb41 | |
parent | b08500508dbbca42f4f031837118dcd5d48083d9 (diff) | |
download | ATCD-jha_ipv6_newbranch.tar.gz |
Clear out the inet_addr_ structure through ALL constructor paths.jha_ipv6_newbranch
-rw-r--r-- | ace/INET_Addr.cpp | 8 | ||||
-rw-r--r-- | ace/Makefile | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/ace/INET_Addr.cpp b/ace/INET_Addr.cpp index c504c09acc2..b046f69e7e8 100644 --- a/ace/INET_Addr.cpp +++ b/ace/INET_Addr.cpp @@ -176,6 +176,7 @@ ACE_INET_Addr::ACE_INET_Addr (const char address[]) : ACE_Addr (this->determine_type(), sizeof (inet_addr_)) { ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr"); + ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_)); this->set (address); } @@ -184,6 +185,7 @@ ACE_INET_Addr::ACE_INET_Addr (const wchar_t address[]) : ACE_Addr (this->determine_type(), sizeof (inet_addr_)) { ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr"); + ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_)); this->set (address); } @@ -380,6 +382,7 @@ ACE_INET_Addr::ACE_INET_Addr (u_short port_number, : ACE_Addr (this->determine_type(), sizeof (inet_addr_)) { ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr"); + ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_)); if (this->set (port_number, host_name, 1, @@ -405,6 +408,7 @@ ACE_INET_Addr::ACE_INET_Addr (u_short port_number, : ACE_Addr (this->determine_type(), sizeof (inet_addr_)) { ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr"); + ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_)); if (this->set (port_number, host_name, 1, @@ -499,6 +503,7 @@ ACE_INET_Addr::ACE_INET_Addr (const char port_name[], : ACE_Addr (this->determine_type(), sizeof (inet_addr_)) { ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr"); + ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_)); if (this->set (port_name, host_name, protocol) == -1) @@ -513,6 +518,7 @@ ACE_INET_Addr::ACE_INET_Addr (const wchar_t port_name[], : ACE_Addr (this->determine_type(), sizeof (inet_addr_)) { ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr"); + ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_)); if (this->set (port_name, host_name, protocol) == -1) @@ -530,6 +536,7 @@ ACE_INET_Addr::ACE_INET_Addr (const char port_name[], : ACE_Addr (this->determine_type(), sizeof (inet_addr_)) { ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr"); + ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_)); if (this->set (port_name, inet_address, protocol) == -1) @@ -544,6 +551,7 @@ ACE_INET_Addr::ACE_INET_Addr (const wchar_t port_name[], : ACE_Addr (this->determine_type(), sizeof (inet_addr_)) { ACE_TRACE ("ACE_INET_Addr::ACE_INET_Addr"); + ACE_OS::memset (&this->inet_addr_, 0, sizeof (this->inet_addr_)); if (this->set (port_name, inet_address, protocol) == -1) diff --git a/ace/Makefile b/ace/Makefile index 6ec048e96ac..ff881d0134a 100644 --- a/ace/Makefile +++ b/ace/Makefile @@ -592,10 +592,6 @@ ifneq ($(GHS),) $(MAKE) $@ ghs=0 endif # 86 endif # GHS - -#---------------------------------------------------------------------------- -# Dependencies -#---------------------------------------------------------------------------- # DO NOT DELETE THIS LINE -- g++dep uses it. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |