summaryrefslogtreecommitdiff
path: root/TAO/tao/IIOP_Connection_Handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/IIOP_Connection_Handler.cpp')
-rw-r--r--TAO/tao/IIOP_Connection_Handler.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/tao/IIOP_Connection_Handler.cpp b/TAO/tao/IIOP_Connection_Handler.cpp
index 30e21eb609c..78c638a8aa7 100644
--- a/TAO/tao/IIOP_Connection_Handler.cpp
+++ b/TAO/tao/IIOP_Connection_Handler.cpp
@@ -515,8 +515,13 @@ TAO_IIOP_Connection_Handler::process_listen_point_list (
for (CORBA::ULong i = 0; i < len; ++i)
{
IIOP::ListenPoint listen_point = listen_list[i];
- ACE_INET_Addr addr (listen_point.port,
- listen_point.host.in ());
+
+ // since the supplied host/port could be unresolvable, the assigning
+ // constructor of the INET addr should not be as it will emit an error
+ // if the underlying set fails. An unresolvable address in this case
+ // is OK, as it will only be used to find an already cached transport.
+ ACE_INET_Addr addr;
+ (void)addr.set(listen_point.port, listen_point.host.in ());
if (TAO_debug_level > 0)
{