[lxc-devel] [lxc/lxc] a70a69: don't dereference a NULL c->lxc_conf

GitHub noreply at github.com
Wed Jun 3 18:09:56 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: a70a69e8a042d31e96258488f6d7228b8eac8d6b
      https://github.com/lxc/lxc/commit/a70a69e8a042d31e96258488f6d7228b8eac8d6b
  Author: Serge Hallyn <serge.hallyn at ubuntu.com>
  Date:   2015-06-03 (Wed, 03 Jun 2015)

  Changed paths:
    M src/lxc/lxccontainer.c

  Log Message:
  -----------
  don't dereference a NULL c->lxc_conf

Commit 37cf711b added a destroy hook, but when it checks
at destroy time whether that hook exists, it assumes that
c->lxc_conf is good.  In fact lxc_conf can be NULL, so check
for that.

Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>




More information about the lxc-devel mailing list