diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-09-29 12:57:07 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-29 12:57:07 -0400 |
commit | 09951bea7fe30cd91d8a4dee95278218f0aa199e (patch) | |
tree | f97f4cf8d6aa8885752c755aac087ea1656daf4e /src/tools | |
parent | 87576e826f5f60d13478bb9de642be0e6f5533a1 (diff) | |
download | tor-09951bea7fe30cd91d8a4dee95278218f0aa199e.tar.gz tor-09951bea7fe30cd91d8a4dee95278218f0aa199e.zip |
Don't use the getaddrinfo sandbox cache from tor-resolve
Fixes bug 13295; bugfix on 0.2.5.3-alpha.
The alternative here is to call crypto_global_init() from tor-resolve,
but let's avoid linking openssl into tor-resolve for as long as we
can.
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/tor-resolve.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index 306f6c66ab..480c7e52ca 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -8,6 +8,7 @@ #include "../common/util.h" #include "address.h" #include "../common/torlog.h" +#include "sandbox.h" #include <stdio.h> #include <stdlib.h> @@ -344,6 +345,7 @@ main(int argc, char **argv) log_severity_list_t *s = tor_malloc_zero(sizeof(log_severity_list_t)); init_logging(); + sandbox_disable_getaddrinfo_cache(); arg = &argv[1]; n_args = argc-1; |