Unverified Commit 9531b90a by Christian Brauner Committed by GitHub

Merge pull request #2077 from lifeng68/Fix_segment_fault

Add return check for 'lxc_cmd_get_name'
parents e749acdf ee2d7093
......@@ -4913,6 +4913,8 @@ int list_active_containers(const char *lxcpath, char ***nret,
if (strncmp(lxcpath, recvpath, lxcpath_len) != 0)
continue;
p = lxc_cmd_get_name(p);
if (!p)
continue;
}
if (array_contains(&ct_name, p, ct_name_cnt))
......
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