diff options
author | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-12 16:58:22 +0000 |
---|---|---|
committer | joeh <joeh@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-04-12 16:58:22 +0000 |
commit | d8ff9ec7453e1e9c65f0b1d5916b5f44ffb3be46 (patch) | |
tree | 0106623d756687c072344d34568f82ee2c55dd2e /ace/ATM_Addr.cpp | |
parent | b56c89bb00ff55c26c81a2336a64cb35120b9e50 (diff) | |
download | ATCD-d8ff9ec7453e1e9c65f0b1d5916b5f44ffb3be46.tar.gz |
Fixing address initialization problem
Diffstat (limited to 'ace/ATM_Addr.cpp')
-rw-r--r-- | ace/ATM_Addr.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/ace/ATM_Addr.cpp b/ace/ATM_Addr.cpp index 6d81ec755d6..490d65c12dc 100644 --- a/ace/ATM_Addr.cpp +++ b/ace/ATM_Addr.cpp @@ -58,7 +58,6 @@ ACE_ATM_Addr::ACE_ATM_Addr (const ATMSAPAddress *sap) ACE_ATM_Addr::ACE_ATM_Addr (const ASYS_TCHAR sap[]) { ACE_TRACE ("ACE_ATM_Addr::ACE_ATM_Addr"); - this->set (sap); } @@ -99,6 +98,8 @@ ACE_ATM_Addr::set (const ACE_ATM_Addr &sap) { ACE_TRACE ("ACE_ATM_Addr::set"); + this->init (); + this->ACE_Addr::base_set (sap.get_type (), sap.get_size ()); @@ -117,6 +118,8 @@ ACE_ATM_Addr::set (const ATMSAPAddress *sap) { ACE_TRACE ("ACE_ATM_Addr::set"); + this->init (); + #if defined (ACE_HAS_FORE_ATM_XTI) this->ACE_Addr::base_set (AF_ATM, #else @@ -135,6 +138,8 @@ ACE_ATM_Addr::set (const ASYS_TCHAR address[]) { ACE_TRACE ("ACE_ATM_Addr::set"); + this->init (); + #if defined (ACE_HAS_FORE_ATM_XTI) atm_addr_.sap.t_atm_sap_addr.SVE_tag_addr = (int8_t) T_ATM_PRESENT; @@ -303,7 +308,6 @@ ACE_ATM_Addr::get_local_address (ACE_HANDLE fd, u_char addr[]) { #if defined (ACE_HAS_FORE_ATM_XTI) - sizeof (struct ATMSAPAddress)) == 0; ATMSAPAddress local_addr; struct t_bind boundaddr; @@ -346,7 +350,8 @@ ACE_ATM_Addr::construct_options(ACE_HANDLE fd, buf = (char *) ACE_OS::malloc (info.options); if (buf == 0) - ACE_ERROR_RETURN (("Unable to allocate %ld bytes for options\n", + ACE_ERROR_RETURN ((LM_ERROR, + ASYS_TEXT ("Unable to allocate %ld bytes for options\n"), info.options), 0); @@ -371,7 +376,8 @@ ACE_ATM_Addr::construct_options(ACE_HANDLE fd, if (get_local_address (fd, source_addr->address)) { - ACE_ERROR ("Can't get local address!\n"); + ACE_ERROR ((LM_ERROR, + ASYS_TEXT ("Can't get local address!\n"))); ACE_OS::free (buf); return 0; } |