Skip to content

Commit

Permalink
confile: cleanup get_config_sysctl()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 8, 2020
1 parent 4c12267 commit 4b1ef6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/confile.c
Expand Up @@ -4363,7 +4363,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;
Expand Down

0 comments on commit 4b1ef6a

Please sign in to comment.