[lxc-devel] [lxc/lxc] b02274: lxccontainer.c: check lxc_conf before referance ha...
GitHub
noreply at github.com
Wed Jan 15 02:52:57 UTC 2014
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: b022744452e07085a6b0fd1d110fee77263a2581
https://github.com/lxc/lxc/commit/b022744452e07085a6b0fd1d110fee77263a2581
Author: Qiang Huang <h.huangqiang at huawei.com>
Date: 2014-01-14 (Tue, 14 Jan 2014)
Changed paths:
M src/lxc/lxccontainer.c
Log Message:
-----------
lxccontainer.c: check lxc_conf before referance haltsignal
If we start container with rcfile(see comments in lxc_start.c), it
is possible that we have no config file in /usr/local/var/lib/lxc.
So when we try lxc_stop, lxc_container_new will not load any config
so we'll get c->lxc_conf = NULL.
In that case, we'll get Segmentation fault in lxcapi_shutdown, a
simple check would fix this.
Signed-off-by: Qiang Huang <h.huangqiang at huawei.com>
Acked-by: Stéphane Graber <stgraber at ubuntu.com>
More information about the lxc-devel
mailing list