diff options
author | Steve Huston <shuston@riverace.com> | 2018-04-10 18:59:38 -0400 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2018-04-10 18:59:38 -0400 |
commit | ceb273ea994e3718d2e7197454839bf7c1fcce34 (patch) | |
tree | 273df17f62dda934429ca8b4902ec3346b979cf2 /TAO/tao/Strategies/SHMIOP_Connector.cpp | |
parent | 3718261cb814c3cc598de91fa2bee7ddcdfffc7b (diff) | |
parent | 29c5bc48b96635cf8aba0f63e3ebd5f3802452d3 (diff) | |
download | ATCD-ceb273ea994e3718d2e7197454839bf7c1fcce34.tar.gz |
Merge out from masterRiverace-case2088
Diffstat (limited to 'TAO/tao/Strategies/SHMIOP_Connector.cpp')
-rw-r--r-- | TAO/tao/Strategies/SHMIOP_Connector.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/tao/Strategies/SHMIOP_Connector.cpp b/TAO/tao/Strategies/SHMIOP_Connector.cpp index bcf909b54ee..3f0532eb050 100644 --- a/TAO/tao/Strategies/SHMIOP_Connector.cpp +++ b/TAO/tao/Strategies/SHMIOP_Connector.cpp @@ -96,8 +96,14 @@ TAO_SHMIOP_Connector::set_validate_endpoint (TAO_Endpoint *endpoint) // Verify that the remote ACE_INET_Addr was initialized properly. // Failure can occur if hostname lookup failed when initializing the // remote ACE_INET_Addr. - if (remote_address.get_type () != AF_INET) + switch (remote_address.get_type ()) { + case AF_INET: +#ifdef ACE_HAS_IPV6 + case AF_INET6: +#endif + break; + default: if (TAO_debug_level > 0) { TAOLIB_ERROR ((LM_ERROR, @@ -111,7 +117,6 @@ TAO_SHMIOP_Connector::set_validate_endpoint (TAO_Endpoint *endpoint) } return 0; - } TAO_Transport * |