summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksym Ked (GitHub) <mked@luxoft.com>2019-05-13 21:00:32 +0300
committermked-luxoft <mked@luxoft.com>2019-08-27 16:28:10 +0300
commite58512646c001ab487a3a861411c778b9317c3f6 (patch)
tree413dfe86b554fe7a5ff256c4d52dc3e299e2ab9d
parent61d5cf0f24258d15e1902616c4b5432c7303a899 (diff)
downloadsdl_core-e58512646c001ab487a3a861411c778b9317c3f6.tar.gz
Fix multiframe issue
-rw-r--r--src/components/protocol_handler/src/multiframe_builder.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/protocol_handler/src/multiframe_builder.cc b/src/components/protocol_handler/src/multiframe_builder.cc
index d7cfc6f90e..fbfc061490 100644
--- a/src/components/protocol_handler/src/multiframe_builder.cc
+++ b/src/components/protocol_handler/src/multiframe_builder.cc
@@ -261,6 +261,11 @@ RESULT_CODE MultiFrameBuilder::HandleConsecutiveFrame(
}
}
+ const bool packet_protection_flag = packet->protection_flag();
+ if (!assembling_frame->protection_flag() && packet_protection_flag) {
+ assembling_frame->set_protection_flag(packet_protection_flag);
+ }
+
assembling_frame->set_frame_data(new_frame_data);
LOG4CXX_DEBUG(logger_,