diff options
Diffstat (limited to 'TAO/tao/decode.cpp')
-rw-r--r-- | TAO/tao/decode.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/tao/decode.cpp b/TAO/tao/decode.cpp index cd3d0e0c7ec..a344f721221 100644 --- a/TAO/tao/decode.cpp +++ b/TAO/tao/decode.cpp @@ -171,7 +171,8 @@ TAO_Marshal_Any::decode (CORBA::TypeCode_ptr, == CORBA::TypeCode::TRAVERSE_CONTINUE) { // Let the Any maintain a pointer to the CDR stream - any->value_ = (ACE_Message_Block *) stream->start (); + any->value_ = ACE_Message_Block::duplicate ((ACE_Message_Block *) + stream->start ()); any->any_owns_data_ = 1; elem_tc->AddRef (); any->type_ = elem_tc; @@ -415,7 +416,7 @@ TAO_Marshal_Principal::decode (CORBA::TypeCode_ptr, CORBA::TypeCode::TRAVERSE_CONTINUE); (*pp)->id.length (len); - continue_decoding = + continue_decoding = stream->read_octet_array ((*pp)->id.get_buffer (), len); } |