mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-05 10:17:23 +00:00
Fix null derefence if attach is called without access to any tty
Signed-off-by: Oliver Matthews <oliver@codersoffortune.net>
This commit is contained in:
parent
0f73b621c4
commit
b9a24c4f2f
@ -321,7 +321,7 @@ static int get_pty_on_host(struct lxc_container *c, struct wrapargs *wrap, int *
|
||||
err3:
|
||||
lxc_mainloop_close(&descr);
|
||||
err2:
|
||||
if (ts->sigfd != -1)
|
||||
if (ts && ts->sigfd != -1)
|
||||
lxc_console_sigwinch_fini(ts);
|
||||
err1:
|
||||
lxc_console_delete(&conf->console);
|
||||
|
Loading…
Reference in New Issue
Block a user