Skip to content

Commit

Permalink
cgroups: vet parameters more strictly
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 Feb 26, 2021
1 parent 6d1b54e commit 0d657d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/cgroups/cgfsng.c
Expand Up @@ -2664,8 +2664,8 @@ __cgfsng_ops static int cgfsng_set(struct cgroup_ops *ops,
struct hierarchy *h;
int ret = -1;

if (!ops)
return ret_set_errno(-1, ENOENT);
if (!ops || !key || !value || !name || !lxcpath)
return ret_errno(ENOENT);

controller = must_copy_string(key);
p = strchr(controller, '.');
Expand Down

0 comments on commit 0d657d6

Please sign in to comment.