Commit e00c0242 by Wolfgang Bumiller

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 25796416
...@@ -3327,6 +3327,7 @@ void lxc_delete_tty(struct lxc_tty_info *tty_info) ...@@ -3327,6 +3327,7 @@ void lxc_delete_tty(struct lxc_tty_info *tty_info)
} }
free(tty_info->pty_info); free(tty_info->pty_info);
tty_info->pty_info = NULL;
tty_info->nbtty = 0; 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