const tor_addr_t *resolved_addr;
tor_addr_t addr_to_compare;
+ (void)arg;
+
tor_addr_parse(&addr_to_compare, "8.8.8.8");
or_circuit_t *on_circ = tor_malloc_zero(sizeof(or_circuit_t));
edge_connection_t *exitconn = create_valid_exitconn();
or_circuit_t *on_circ = tor_malloc_zero(sizeof(or_circuit_t));
+ (void)arg;
+
TO_CONN(exitconn)->address = tor_strdup("torproject.org");
NS_MOCK(router_my_exit_policy_is_reject_star);
edge_connection_t *exitconn = create_valid_exitconn();
or_circuit_t *on_circ = tor_malloc_zero(sizeof(or_circuit_t));
+ (void)arg;
+
NS_MOCK(router_my_exit_policy_is_reject_star);
TO_CONN(exitconn)->address = tor_strdup("invalid#@!.org");
edge_connection_t *exitconn = create_valid_exitconn();
or_circuit_t *on_circ = tor_malloc_zero(sizeof(or_circuit_t));
+ (void)arg;
+
TO_CONN(exitconn)->address = tor_strdup("127.0.0.1.in-addr.arpa");
NS_MOCK(router_my_exit_policy_is_reject_star);
cache_entry->minheap_idx = -1;
cache_entry->expire = time(NULL) + 60 * 60;
+ (void)arg;
+
TO_CONN(exitconn)->address = tor_strdup("torproject.org");
strlcpy(cache_entry->address, TO_CONN(exitconn)->address,
last_exitconn = exitconn;
last_resolve = (cached_resolve_t *)resolve;
+ (void)hostname_out;
+
return 0;
}
cache_entry->minheap_idx = -1;
cache_entry->expire = time(NULL) + 60 * 60;
+ (void)arg;
+
TO_CONN(exitconn)->address = tor_strdup("torproject.org");
strlcpy(cache_entry->address, TO_CONN(exitconn)->address,
cached_resolve_t *cache_entry = NULL;
cached_resolve_t query;
+ (void)arg;
+
TO_CONN(exitconn)->address = tor_strdup("torproject.org");
strlcpy(query.address, TO_CONN(exitconn)->address, sizeof(query.address));