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

Stanislav Kinsbursky skinsbursky at parallels.com
Fri Mar 16 09:13:29 EDT 2012


16.03.2012 16:15, Cyrill Gorcunov пишет:
> 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)

This is a "typo"?!

-- 
Best regards,
Stanislav Kinsbursky



More information about the CRIU mailing list