]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: ensure devpts_fd is set to -EBADF 3912/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 28 Jul 2021 16:39:31 +0000 (18:39 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 28 Jul 2021 16:40:14 +0000 (18:40 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index d893328c7680434d9c4bce1bcf568fc27a29d5f4..482d1213bf3721fdd3abf4e080c790b81981876d 100644 (file)
@@ -3255,6 +3255,7 @@ struct lxc_conf *lxc_conf_init(void)
        new->console.ptx = -EBADF;
        new->console.pty = -EBADF;
        new->console.name[0] = '\0';
+       new->devpts_fd = -EBADF;
        memset(&new->console.ringbuf, 0, sizeof(struct lxc_ringbuf));
        new->maincmd_fd = -1;
        new->monitor_signal_pdeath = SIGKILL;