diff options
Diffstat (limited to 'TAO/tao/IIOP_Acceptor.cpp')
-rw-r--r-- | TAO/tao/IIOP_Acceptor.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/TAO/tao/IIOP_Acceptor.cpp b/TAO/tao/IIOP_Acceptor.cpp index 8aeb35c7678..127cac7b1d3 100644 --- a/TAO/tao/IIOP_Acceptor.cpp +++ b/TAO/tao/IIOP_Acceptor.cpp @@ -47,8 +47,6 @@ TAO_IIOP_Acceptor::create_mprofile (const TAO_ObjectKey &object_key, // ACE_INET_Addr new_address; // if (base_acceptor_.acceptor ().get_local_addr (new_address) == -1) // return 0; - ACE_INET_Addr new_address (orb_params->addr ().get_port_number (), - orb_params->host ()); // we only make one int count = mprofile->profile_count (); @@ -59,8 +57,14 @@ TAO_IIOP_Acceptor::create_mprofile (const TAO_ObjectKey &object_key, } TAO_IIOP_Profile pfile; + // ACE_NEW_RETURN (pfile + // TAO_IIOP_Profile (new_address, object_key), + // -1); ACE_NEW_RETURN (pfile - TAO_IIOP_Profile (new_address, object_key), + TAO_IIOP_Profile (orb_params->host (), + orb_params->addr ().get_port_number (), + key, + orb_params->addr ()), -1); if (mprofile->give_profile (pfile) == -1) |