summaryrefslogtreecommitdiff
path: root/src/components/protocol_handler/src/multiframe_builder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/protocol_handler/src/multiframe_builder.cc')
-rw-r--r--src/components/protocol_handler/src/multiframe_builder.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/protocol_handler/src/multiframe_builder.cc b/src/components/protocol_handler/src/multiframe_builder.cc
index c34e2ec640..fbfc061490 100644
--- a/src/components/protocol_handler/src/multiframe_builder.cc
+++ b/src/components/protocol_handler/src/multiframe_builder.cc
@@ -36,8 +36,8 @@
#include "utils/logger.h"
-#include "utils/lock.h"
#include "utils/date_time.h"
+#include "utils/lock.h"
namespace protocol_handler {
@@ -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_,