]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
attach: initialize init_pid field to -ESRCH
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 1 Feb 2021 10:43:47 +0000 (11:43 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 1 Feb 2021 11:30:03 +0000 (12:30 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c

index 869f2c148f4684d7e904169072b02bf557a913fd..977bb2ee585fbae3c08e15bd701743e7685bc73d 100644 (file)
@@ -151,6 +151,7 @@ static struct attach_context *alloc_attach_context(void)
 
        ctx->dfd_self_pid = -EBADF;
        ctx->dfd_init_pid = -EBADF;
+       ctx->init_gid = -ESRCH;
        ctx->init_uid = 0;
        ctx->init_gid = 0;