Before sending the result, the server should receive the request data.
Even though the result is "permission denied", the result can be "I/O
error" When the client is still sending.
Change-Id: I15897fd821129dc3de1539fe6d6860d754966e46
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
int ret = handle->CheckPrivilege(client->GetFd());
if (ret != 0) {
_E("Request is denied");
+ std::vector<uint8_t> buf;
+ client->Recv(buf);
+
std::vector<uint8_t> dummy;
Response res(ret, dummy);
tizen_base::Parcel res_parcel;