summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp
index abb85b4637c..2f6bef7091e 100644
--- a/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp
+++ b/TAO/orbsvcs/orbsvcs/SSLIOP/SSLIOP_Connection_Handler.cpp
@@ -371,13 +371,16 @@ TAO::SSLIOP::Connection_Handler::process_listen_point_list (
listen_point.host.in ()));
}
- // Construct an IIOP_Endpoint object
- // Construct an IIOP_Endpoint object.
+ // Construct an IIOP_Endpoint object using the host as provided
+ // in the listen point list. We must use the host in that form
+ // because that's also how the ORB on the other side will
+ // advertise the host in an IOR.
//
// Note that the port in the ACE_INET_Addr is actually the SSL
// port!
- TAO_IIOP_Endpoint tmpoint (addr,
- this->orb_core()->orb_params()->use_dotted_decimal_addresses ());
+ TAO_IIOP_Endpoint tmpoint (listen_point.host.in (),
+ listen_point.port,
+ addr);
// @@ This is broken. Instead of just using the default CORBA
// SecurityAssociation options, by not supplying SSLIOP::SSL