Commit 4c2353ed authored by Rémi Duraffort's avatar Rémi Duraffort

Fix assignment instead of compare

parent a461c5da
...@@ -91,7 +91,7 @@ static int recv_fd (int p) ...@@ -91,7 +91,7 @@ static int recv_fd (int p)
cmsg = CMSG_NXTHDR (&hdr, cmsg)) cmsg = CMSG_NXTHDR (&hdr, cmsg))
{ {
if ((cmsg->cmsg_level == SOL_SOCKET) if ((cmsg->cmsg_level == SOL_SOCKET)
&& (cmsg->cmsg_type = SCM_RIGHTS) && (cmsg->cmsg_type == SCM_RIGHTS)
&& (cmsg->cmsg_len >= CMSG_LEN (sizeof (fd)))) && (cmsg->cmsg_len >= CMSG_LEN (sizeof (fd))))
{ {
memcpy (&fd, CMSG_DATA (cmsg), sizeof (fd)); memcpy (&fd, CMSG_DATA (cmsg), sizeof (fd));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment