aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.h
diff options
context:
space:
mode:
authorCristian Toader <cristian.matei.toader@gmail.com>2013-09-03 16:37:12 +0300
committerCristian Toader <cristian.matei.toader@gmail.com>2013-09-03 16:37:12 +0300
commit55d8b8e578e17d8654f33f62fdc4a4419a6b92a7 (patch)
tree6c8b051089007275ded90a412d5b12168b28463b /src/common/sandbox.h
parentb4b0eddd29b0b2ad78e4cf61362283034677f42f (diff)
downloadtor-55d8b8e578e17d8654f33f62fdc4a4419a6b92a7.tar
tor-55d8b8e578e17d8654f33f62fdc4a4419a6b92a7.tar.gz
fixed bug where sandbox_getaddrinfo() would fail when -Sandbox is 0
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r--src/common/sandbox.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h
index 59474c4fe..503bb7084 100644
--- a/src/common/sandbox.h
+++ b/src/common/sandbox.h
@@ -133,7 +133,8 @@ typedef struct {
int sandbox_add_addrinfo(const char *addr);
/** Replacement for getaddrinfo(), using pre-recorded results. */
-int sandbox_getaddrinfo(const char *name, struct addrinfo **res);
+int sandbox_getaddrinfo(const char *name, struct addrinfo hints,
+ struct addrinfo **res);
/** Use <b>fd</b> to log non-survivable sandbox violations. */
void sandbox_set_debugging_fd(int fd);