Commit 021eb126 by Christian Brauner Committed by GitHub

Merge pull request #1206 from cwoac/master

Fix null derefence if attach is called without access to any tty
parents 0f73b621 b9a24c4f
......@@ -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);
......
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