From 209e0bd9f9cf59fab382044d13f498aac3a1306a Mon Sep 17 00:00:00 2001 From: "Maksym Ked (GitHub)" Date: Mon, 13 May 2019 21:00:32 +0300 Subject: Fix multiframe issue --- src/components/protocol_handler/src/multiframe_builder.cc | 5 +++++ 1 file changed, 5 insertions(+) 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_, -- cgit v1.2.1