Commit c0003804 authored by Pavel Emelyanov's avatar Pavel Emelyanov

scm: Fix all fd flags drain in one chunk

Stupid misprint
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent f83ad9c4
......@@ -121,7 +121,7 @@ int recv_fds(int sock, int *fds, int nr_fds, char *flags)
return -1;
builtin_memcpy(&fds[i], cmsg_data, sizeof(int) * min_fd);
if (flags)
builtin_memcpy(flags, fdset.msg, sizeof(char) * min_fd);
builtin_memcpy(flags + i, fdset.msg, sizeof(char) * min_fd);
}
return 0;
......
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