]> git.proxmox.com Git - mirror_lxc.git/commit
don't dereference a NULL c->lxc_conf
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 3 Jun 2015 17:20:19 +0000 (17:20 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 3 Jun 2015 18:09:51 +0000 (14:09 -0400)
commita70a69e8a042d31e96258488f6d7228b8eac8d6b
tree6ad25a6cbdc420da85d1f25ab46cb1bd2fc3cbc3
parent755fa45300ba1dc5da63a1b88cec3e205172f078
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@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c