File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
include/fastdds/rtps/messages Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ class MessageReceiver
90
90
91
91
#if HAVE_SECURITY
92
92
CDRMessage_t crypto_msg_;
93
+ CDRMessage_t crypto_submsg_;
93
94
#endif
94
95
95
96
// !Reset the MessageReceiver to process a new message.
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ MessageReceiver::MessageReceiver(
53
53
, timestamp_(c_TimeInvalid)
54
54
#if HAVE_SECURITY
55
55
, crypto_msg_(participant->is_secure () ? rec_buffer_size : 0)
56
+ , crypto_submsg_(participant->is_secure () ? rec_buffer_size : 0)
56
57
#endif // if HAVE_SECURITY
57
58
{
58
59
(void )rec_buffer_size;
@@ -199,7 +200,8 @@ void MessageReceiver::processCDRMsg(
199
200
{
200
201
// The original CDRMessage buffer (msg) now points to the proprietary temporary CDRMessage buffer (crypto_msg_).
201
202
// This way the already decoded proprietary buffer is processed while it is being modified.
202
- *msg = CDRMessage_t (crypto_msg_);
203
+ msg = auxiliary_buffer;
204
+ auxiliary_buffer = &crypto_submsg_;
203
205
}
204
206
#endif // if HAVE_SECURITY
205
207
You can’t perform that action at this time.
0 commit comments