From 55a5c60a07f5c0f1c6c998fbaa5dd0905d6cbdcf Mon Sep 17 00:00:00 2001 From: Phil Mesnier Date: Wed, 20 Sep 2006 21:39:55 +0000 Subject: Wed Sep 20 21:37:58 UTC 2006 Phil Mesnier --- TAO/ChangeLog | 7 +++++++ TAO/tao/IIOP_Acceptor.cpp | 26 ++++++++++++++------------ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/TAO/ChangeLog b/TAO/ChangeLog index 6804e418e97..814749c9ed8 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,10 @@ +Wed Sep 20 21:37:58 UTC 2006 Phil Mesnier + + * tao/IIOP_Acceptor.cpp: + + Fix for non-IPV6 builds. This relates back to the test for an + explicitly supplied any addr. + Wed Sep 20 21:02:14 UTC 2006 Phil Mesnier * tao/IIOP_Acceptor.cpp: diff --git a/TAO/tao/IIOP_Acceptor.cpp b/TAO/tao/IIOP_Acceptor.cpp index f701b438222..c1a78f3e02c 100644 --- a/TAO/tao/IIOP_Acceptor.cpp +++ b/TAO/tao/IIOP_Acceptor.cpp @@ -703,19 +703,21 @@ TAO_IIOP_Acceptor::parse_address (const char *address, tmp_host[len] = '\0'; } } - else if (!host_defaulted) - { - if (port_separator_loc != 0) - { - // Extract out just the host part of the address. - size_t const len = port_separator_loc - address; - ACE_OS::memcpy (tmp_host, address, len); - tmp_host[len] = '\0'; - } - else - ACE_OS::strcpy (tmp_host, address); - } + else #endif /* ACE_HAS_IPV6 */ + if (!host_defaulted) + { + if (port_separator_loc != 0) + { + // Extract out just the host part of the address. + size_t const len = port_separator_loc - address; + ACE_OS::memcpy (tmp_host, address, len); + tmp_host[len] = '\0'; + } + else + ACE_OS::strcpy (tmp_host, address); + } + if (!ipv6_in_host && !host_defaulted) { if (addr.set((unsigned short)0,tmp_host) != 0) -- cgit v1.2.1