summaryrefslogtreecommitdiff
path: root/src/or/dns.c
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2015-10-21 22:24:00 +0300
committerrl1987 <rl1987@sdf.lonestar.org>2015-10-24 14:30:53 +0300
commita187c772af440cb5543eecc329ee573cebc60391 (patch)
tree3674b4795e12437ce73f629d49e2f5522a353ab9 /src/or/dns.c
parentf53dcf6a357e83a0b018d6f66bfb8a30734bd9a9 (diff)
downloadtor-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.c5
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;