From: Cristian Toader Date: Mon, 9 Sep 2013 21:42:36 +0000 (+0300) Subject: fixed socket syscall bug X-Git-Tag: tor-0.2.5.1-alpha~39^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8e003b1c69152ba6e5c3a09db11472eef5db14da;p=thirdparty%2Ftor.git fixed socket syscall bug --- diff --git a/src/common/sandbox.c b/src/common/sandbox.c index 6db682d518..a852cb697b 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), "