confile: cleanup get_config_sysctl()

parent 7cf13e1a
......@@ -4089,7 +4089,7 @@ static int get_config_sysctl(const char *key, char *retv, int inlen,
else if (strncmp(key, "lxc.sysctl.", STRLITERALLEN("lxc.sysctl.")) == 0)
key += STRLITERALLEN("lxc.sysctl.");
else
return -1;
return ret_errno(EINVAL);
lxc_list_for_each(it, &c->sysctls) {
struct lxc_sysctl *elem = it->elem;
......
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