diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2015-10-21 22:24:00 +0300 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2015-10-24 14:30:53 +0300 |
commit | a187c772af440cb5543eecc329ee573cebc60391 (patch) | |
tree | 3674b4795e12437ce73f629d49e2f5522a353ab9 /src/or/dns.c | |
parent | f53dcf6a357e83a0b018d6f66bfb8a30734bd9a9 (diff) | |
download | tor-a187c772af440cb5543eecc329ee573cebc60391.tar.gz tor-a187c772af440cb5543eecc329ee573cebc60391.zip |
Seventh test case for dns_resolve_impl().
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index 297ac6f0d5..f98181756e 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -107,7 +107,6 @@ static void dns_found_answer(const char *address, uint8_t query_type, const tor_addr_t *addr, const char *hostname, uint32_t ttl); -static int launch_resolve(cached_resolve_t *resolve); static void add_wildcarded_test_address(const char *address); static int configure_nameservers(int force); static int answer_is_wildcarded(const char *ip); @@ -1661,8 +1660,8 @@ launch_one_resolve(const char *address, uint8_t query_type, /** For eventdns: start resolving as necessary to find the target for * <b>exitconn</b>. Returns -1 on error, -2 on transient error, * 0 on "resolve launched." */ -static int -launch_resolve(cached_resolve_t *resolve) +MOCK_IMPL(STATIC int, +launch_resolve,(cached_resolve_t *resolve)) { tor_addr_t a; int r; |