]> git.ipfire.org Git - thirdparty/lxc.git/commit
conf: set pty_info to NULL after free 1106/head
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 28 Jul 2016 09:52:18 +0000 (11:52 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 28 Jul 2016 13:13:41 +0000 (15:13 +0200)
commite00c024230e457a0f37ea5c90bd8caac0c30020e
tree2a2bf0879ee49c5779fab505da7de4d50191523c
parent25796416084f3cecf036bd922d6ead094500191e
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: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/lxc/conf.c