Commit 497a2995 by S.Çağlar Onur Committed by Serge Hallyn

make sure to check c->lxc_conf is not NULL before dereferencing it.

parent 70215480
...@@ -453,7 +453,7 @@ static bool lxcapi_load_config(struct lxc_container *c, const char *alt_file) ...@@ -453,7 +453,7 @@ static bool lxcapi_load_config(struct lxc_container *c, const char *alt_file)
static void lxcapi_want_daemonize(struct lxc_container *c) static void lxcapi_want_daemonize(struct lxc_container *c)
{ {
if (!c) if (!c || !c->lxc_conf)
return; return;
if (container_mem_lock(c)) { if (container_mem_lock(c)) {
ERROR("Error getting mem lock"); ERROR("Error getting mem lock");
......
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