Unverified Commit 8cd059df by Christian Brauner Committed by GitHub

Merge pull request #2350 from Blub/seccomp-cleanup-fixup

seccomp: leak fixup
parents 12697380 97a9b258
......@@ -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);
......
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