diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-09-10 00:42:36 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-09-10 00:42:36 +0300 |
commit | 8e003b1c69152ba6e5c3a09db11472eef5db14da (patch) | |
tree | 03385d48f48f68ce08b1222cd1675065823adb52 | |
parent | 3802cae9597fa417ceec428215159a65195e0f7a (diff) | |
download | tor-8e003b1c69152ba6e5c3a09db11472eef5db14da.tar tor-8e003b1c69152ba6e5c3a09db11472eef5db14da.tar.gz |
fixed socket syscall bug
-rw-r--r-- | src/common/sandbox.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c index 6db682d51..a852cb697 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -1187,8 +1187,6 @@ add_noparam_filter(scmp_filter_ctx ctx) // add general filters for (i = 0; i < ARRAY_LENGTH(filter_nopar_gen); i++) { - if (filter_nopar_gen[i] < 0) - continue; rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, filter_nopar_gen[i], 0); if (rc != 0) { log_err(LD_BUG,"(Sandbox) failed to add syscall index %d (NR=%d), " |