aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-08-21 11:20:29 -0400
committerNick Mathewson <nickm@torproject.org>2014-08-21 11:22:42 -0400
commit35b2e11755627cdd9b746f150ccdbecbcc867f0d (patch)
tree4ec99e02ec392fca10a0f2602d23ac21950613e8 /src/common/sandbox.h
parent446e481c90666235bc184cdad6a8578b79fa258e (diff)
downloadtor-35b2e11755627cdd9b746f150ccdbecbcc867f0d.tar.gz
tor-35b2e11755627cdd9b746f150ccdbecbcc867f0d.zip
Store sandbox params as char *, since that's what they are.
This allows coverity to infer that we aren't leaking them. [Fixes a lot of CIDs]
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r--src/common/sandbox.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index 20d5d5080c..b4bb294750 100644
--- a/src/common/sandbox.h
+++ b/src/common/sandbox.h
@@ -66,9 +66,9 @@ typedef struct smp_param {
int syscall;
/** parameter value. */
- intptr_t value;
+ char *value;
/** parameter value, second argument. */
- intptr_t value2;
+ char *value2;
/** parameter flag (0 = not protected, 1 = protected). */
int prot;