mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-06 12:18:35 +00:00
Merge pull request #2350 from Blub/seccomp-cleanup-fixup
seccomp: leak fixup
This commit is contained in:
commit
8cd059dfdc
@ -54,8 +54,10 @@ static int parse_config_v1(FILE *f, struct lxc_conf *conf)
|
||||
int nr;
|
||||
|
||||
ret = sscanf(line, "%d", &nr);
|
||||
if (ret != 1)
|
||||
return -1;
|
||||
if (ret != 1) {
|
||||
ret = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
#if HAVE_SCMP_FILTER_CTX
|
||||
ret = seccomp_rule_add(conf->seccomp_ctx, SCMP_ACT_ALLOW, nr, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user