diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-11-13 17:02:15 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-14 16:12:29 -0500 |
commit | eaff47352a1ef607f6d97e9b35bd6d5eefdfcb26 (patch) | |
tree | 32aa0aa22fd6b7aa2f3ae158c0de24d2ff63c490 /src/lib/net/resolve.c | |
parent | e420154ce77d9169bc72c373bfc7e29cb7245723 (diff) | |
download | tor-eaff47352a1ef607f6d97e9b35bd6d5eefdfcb26.tar.gz tor-eaff47352a1ef607f6d97e9b35bd6d5eefdfcb26.zip |
Make sure sandbox-related getaddrinfo() functions always exist.
Diffstat (limited to 'src/lib/net/resolve.c')
-rw-r--r-- | src/lib/net/resolve.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/net/resolve.c b/src/lib/net/resolve.c index 01f7882964..95c1b171b5 100644 --- a/src/lib/net/resolve.c +++ b/src/lib/net/resolve.c @@ -421,4 +421,13 @@ tor_make_getaddrinfo_cache_active(void) { sandbox_getaddrinfo_is_active = 1; } +#else +void +sandbox_disable_getaddrinfo_cache(void) +{ +} +void +tor_make_getaddrinfo_cache_active(void) +{ +} #endif |