Commit 791c686a by Wolfgang Bumiller Committed by Stéphane Graber

conf: set pty_info to NULL after free

This fixes a double free corruption on container-requested reboots when lxc_spawn() fails before receiving the ttys, as lxc_fini() (part of __lxc_start()'s cleanup) calls lxc_delete_tty(). Signed-off-by: 's avatarWolfgang Bumiller <w.bumiller@proxmox.com>
parent f5720a03
......@@ -3840,6 +3840,7 @@ void lxc_delete_tty(struct lxc_tty_info *tty_info)
}
free(tty_info->pty_info);
tty_info->pty_info = NULL;
tty_info->nbtty = 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