Unverified Commit 9c0e2551 by Christian Brauner Committed by Stéphane Graber

rexec: avoid double-close

Fixes: Coverity 1461721. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent bc15baac
......@@ -143,7 +143,7 @@ static void lxc_rexec_as_memfd(char **argv, char **envp, const char *memfd_name)
if (fcntl(memfd, F_ADD_SEALS, LXC_MEMFD_REXEC_SEALS))
return;
execfd = memfd;
execfd = move_fd(memfd);
} else {
char procfd[LXC_PROC_PID_FD_LEN];
......
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