[CRIU] [PATCH] net: Fix typo in recv_fd

Cyrill Gorcunov gorcunov at openvz.org
Fri Mar 16 08:15:48 EDT 2012


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 util-net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/util-net.c b/util-net.c
index dad02c4..89755c9 100644
--- a/util-net.c
+++ b/util-net.c
@@ -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);
-- 
1.7.7.6



More information about the CRIU mailing list