summaryrefslogtreecommitdiff
path: root/TAO/tao/IIOP_Profile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/IIOP_Profile.cpp')
-rw-r--r--TAO/tao/IIOP_Profile.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/TAO/tao/IIOP_Profile.cpp b/TAO/tao/IIOP_Profile.cpp
index 8b14d986852..8f71c2dd386 100644
--- a/TAO/tao/IIOP_Profile.cpp
+++ b/TAO/tao/IIOP_Profile.cpp
@@ -172,17 +172,6 @@ TAO_IIOP_Profile::decode (TAO_InputCDR& cdr)
return -1;
}
- if (this->object_addr_.set (this->port_,
- this->host_.in ()) == -1)
- {
- if (TAO_debug_level > 0)
- {
- ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("TAO (%P|%t) IIOP_Profile::decode - ")
- ACE_TEXT ("ACE_INET_Addr::set() failed\n")));
- }
- return -1;
- }
// ... and object key.
if ((cdr >> this->object_key_) == 0)
@@ -206,7 +195,12 @@ TAO_IIOP_Profile::decode (TAO_InputCDR& cdr)
}
if (cdr.good_bit ())
- return 1;
+ {
+ // Invalidate the object_addr_ until first access.
+ this->object_addr_.set_type (-1);
+
+ return 1;
+ }
return -1;
}