From ea67a6622146ff75e65b86c8342ac29969a9a814 Mon Sep 17 00:00:00 2001 From: jha Date: Mon, 8 Oct 2001 17:43:15 +0000 Subject: Clear out the inet_addr_ structure through ALL constructor paths. --- ace/INET_Addr.cpp | 8 ++++++++ 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. -- cgit v1.2.1