Fix a wrong implementation of sync request handler 77/251177/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 11 Jan 2021 04:59:28 +0000 (13:59 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 11 Jan 2021 04:59:28 +0000 (13:59 +0900)
Change-Id: I7ddc2d8aab2358fc6dd3d75b42f9023182e6da6d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
component_based/port/port.cc

index c395194f675bf0f4b130552d74f4486fc6af144c..9f7994af008aec24b37f1058f9e0dc8065eb47a6 100644 (file)
@@ -128,6 +128,8 @@ void Port::Impl::OnSyncRequestReceived(const std::string& sender, pid_t pid,
   auto res = std::shared_ptr<tizen_base::Parcel>(
       new (std::nothrow) tizen_base::Parcel());
   listener_->OnSyncRequest(sender_info, req, res);
+  std::copy(res->GetRaw().begin(), res->GetRaw().end(),
+      std::back_inserter(response));
 }
 
 void Port::Impl::OnRequestReceived(const std::string& sender, pid_t pid,