diff options
author | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-09-03 16:37:12 +0300 |
---|---|---|
committer | Cristian Toader <cristian.matei.toader@gmail.com> | 2013-09-03 16:37:12 +0300 |
commit | 55d8b8e578e17d8654f33f62fdc4a4419a6b92a7 (patch) | |
tree | 6c8b051089007275ded90a412d5b12168b28463b /src/common/sandbox.h | |
parent | b4b0eddd29b0b2ad78e4cf61362283034677f42f (diff) | |
download | tor-55d8b8e578e17d8654f33f62fdc4a4419a6b92a7.tar.gz tor-55d8b8e578e17d8654f33f62fdc4a4419a6b92a7.zip |
fixed bug where sandbox_getaddrinfo() would fail when -Sandbox is 0
Diffstat (limited to 'src/common/sandbox.h')
-rw-r--r-- | src/common/sandbox.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/sandbox.h b/src/common/sandbox.h index 59474c4fe8..503bb70846 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); |