mirror of
git://github.com/lxc/lxc
synced 2025-08-31 19:39:24 +00:00
Remove unnecessary reset of msg.msg_controlle
Remove unnecessary reset of msg.msg_controllen Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
committed by
Daniel Lezcano
parent
e4e7d59db8
commit
aedd9d3fb3
@@ -122,7 +122,6 @@ int lxc_af_unix_send_fd(int fd, int sendfd, void *data, size_t size)
|
||||
cmsg->cmsg_level = SOL_SOCKET;
|
||||
cmsg->cmsg_type = SCM_RIGHTS;
|
||||
*((int *) CMSG_DATA(cmsg)) = sendfd;
|
||||
msg.msg_controllen = cmsg->cmsg_len;
|
||||
|
||||
msg.msg_name = NULL;
|
||||
msg.msg_namelen = 0;
|
||||
@@ -194,7 +193,6 @@ int lxc_af_unix_send_credential(int fd, void *data, size_t size)
|
||||
cmsg->cmsg_level = SOL_SOCKET;
|
||||
cmsg->cmsg_type = SCM_CREDENTIALS;
|
||||
*((struct ucred *) CMSG_DATA(cmsg)) = cred;
|
||||
msg.msg_controllen = cmsg->cmsg_len;
|
||||
|
||||
msg.msg_name = NULL;
|
||||
msg.msg_namelen = 0;
|
||||
|
Reference in New Issue
Block a user