Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions common/clientsock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ int32_t LocalClientSocket::SendMessage(const SocketData& req)
{
HDCP_FUNCTION_ENTER;

int32_t ret = WriteData(m_Fd, &req.Bytes, sizeof(req));
int32_t ret = WriteData(m_Fd, &req.Bytes, sizeof(req.Bytes));

HDCP_FUNCTION_EXIT(ret);
return ret;
Expand Down Expand Up @@ -181,7 +181,7 @@ int32_t LocalClientSocket::GetMessage(SocketData& rsp)
sizeof(rsp) <= SSIZE_MAX,
"response size is greater than read() can handle!");

int32_t ret = ReadData(m_Fd, &rsp.Bytes, sizeof(rsp));
int32_t ret = ReadData(m_Fd, &rsp.Bytes, sizeof(rsp.Bytes));

HDCP_FUNCTION_EXIT(ret);
return ret;
Expand Down
4 changes: 2 additions & 2 deletions common/servsock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ int32_t LocalServerSocket::GetRequest(SocketData& req, const int32_t fd)
{
HDCP_FUNCTION_ENTER;

int32_t ret = ReadData(fd, &req.Bytes, sizeof(req));
int32_t ret = ReadData(fd, &req.Bytes, sizeof(req.Bytes));

HDCP_FUNCTION_EXIT(ret);
return ret;
Expand All @@ -101,7 +101,7 @@ int32_t LocalServerSocket::SendResponse(const SocketData& rsp, const int32_t fd)
{
HDCP_FUNCTION_ENTER;

int32_t ret = WriteData(fd, &rsp.Bytes, sizeof(rsp));
int32_t ret = WriteData(fd, &rsp.Bytes, sizeof(rsp.Bytes));

HDCP_FUNCTION_EXIT(ret);
return ret;
Expand Down