]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
remove debugging code
authorCristian Toader <cristian.matei.toader@gmail.com>
Thu, 12 Sep 2013 11:12:56 +0000 (14:12 +0300)
committerCristian Toader <cristian.matei.toader@gmail.com>
Thu, 12 Sep 2013 11:12:56 +0000 (14:12 +0300)
src/common/sandbox.c

index 5961c0641416f15294ad1e5df6f88333ef799893..dc8885e1851b1d4215378831d700075810c07db2 100644 (file)
 #include <time.h>
 #include <poll.h>
 
-// TODO: remove test
-static void *test_buf_base = NULL;
-static int test_buf_len = 0;
-
 /**Determines if at least one sandbox is active.*/
 static int sandbox_active = 0;
 /** Holds the parameter list configuration for the sandbox.*/
@@ -864,10 +860,6 @@ prot_strings(scmp_filter_ctx ctx, sandbox_cfg_t* cfg)
     }
   }
 
-  // TODO: remove, test
-  test_buf_base = pr_mem_base;
-  test_buf_len = pr_mem_size;
-
   // protecting from writes
   if (mprotect(pr_mem_base, MALLOC_MP_LIM + pr_mem_size, PROT_READ)) {
     log_err(LD_BUG,"(Sandbox) failed to protect memory! mprotect: %s",