summaryrefslogtreecommitdiff
path: root/TAO/tao/CDR.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-01-21 19:49:58 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-01-21 19:49:58 +0000
commit54b3d6d6e7d068c48a3a5b3cbe46991780962a96 (patch)
tree9b4f811ff35e6148cfa694fe15ecc0ce28a31d07 /TAO/tao/CDR.cpp
parentee49a15ead5eccccff4e4d5e5210679d67bd471a (diff)
downloadATCD-54b3d6d6e7d068c48a3a5b3cbe46991780962a96.tar.gz
ChangeLogTag:Thu Jan 21 10:57:25 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/CDR.cpp')
-rw-r--r--TAO/tao/CDR.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/TAO/tao/CDR.cpp b/TAO/tao/CDR.cpp
index 27d438e665a..3e1bb59fbd9 100644
--- a/TAO/tao/CDR.cpp
+++ b/TAO/tao/CDR.cpp
@@ -544,12 +544,15 @@ TAO_OutputCDR::write_octet_array_mb (const ACE_Message_Block* mb)
continue;
}
- ACE_Message_Block* cont = ACE_Message_Block::duplicate (i);
+ ACE_Message_Block* cont =
+ new ACE_Message_Block (i->data_block ()->duplicate ());
if (cont != 0)
{
cont->cont (this->current_->cont ());
this->current_->cont (cont);
this->current_ = cont;
+ cont->rd_ptr (i->rd_ptr ());
+ cont->wr_ptr (i->wr_ptr ());
}
else
{