Commit 9bb93f7e authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

net: Fix typo in recv_fd

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent ffacd0f1
......@@ -57,7 +57,7 @@ int recv_fd(int sock)
return ret;
cmsg = CMSG_FIRSTHDR(&msg);
if (!cmsg || !cmsg->cmsg_type == SCM_RIGHTS)
if (!cmsg || (cmsg->cmsg_type != SCM_RIGHTS))
return -2;
cmsg_data = (int *)CMSG_DATA(cmsg);
......
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