diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-10-31 22:43:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-11-14 23:16:24 -0500 |
commit | 0487c0d5798ce125dcaf61f7c8fc8b879d377674 (patch) | |
tree | fbc87e4a6356e1296e0403e5088e50f682b54b75 /src/or | |
parent | 807b781a3d9028db496640541a6168be936ab424 (diff) | |
download | tor-0487c0d5798ce125dcaf61f7c8fc8b879d377674.tar.gz tor-0487c0d5798ce125dcaf61f7c8fc8b879d377674.zip |
Reindent a block in dns.c
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/dns.c | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index 3832421007..edcd5bf67f 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -1714,31 +1714,29 @@ launch_test_addresses(int fd, short event, void *args) * be an exit server.*/ if (options->ServerDNSTestAddresses) { - tor_assert(the_evdns_base); - SMARTLIST_FOREACH_BEGIN(options->ServerDNSTestAddresses, - const char *, address) { - char *a = tor_strdup(address); - req = evdns_base_resolve_ipv4(the_evdns_base, - address, DNS_QUERY_NO_SEARCH, evdns_callback, a); - - if (!req) { - log_info(LD_EXIT, "eventdns rejected test address %s", - escaped_safe_str(address)); - tor_free(a); - } - a = tor_strdup(address); - req = evdns_base_resolve_ipv6(the_evdns_base, - address, DNS_QUERY_NO_SEARCH, evdns_callback, a); - ++n_ipv6_requests_made; - if (!req) { - log_info(LD_EXIT, "eventdns rejected test address %s", - escaped_safe_str(address)); - tor_free(a); - } - } SMARTLIST_FOREACH_END(address); - - } /*XXXX REINDENT */ - + tor_assert(the_evdns_base); + SMARTLIST_FOREACH_BEGIN(options->ServerDNSTestAddresses, + const char *, address) { + char *a = tor_strdup(address); + req = evdns_base_resolve_ipv4(the_evdns_base, + address, DNS_QUERY_NO_SEARCH, evdns_callback, a); + + if (!req) { + log_info(LD_EXIT, "eventdns rejected test address %s", + escaped_safe_str(address)); + tor_free(a); + } + a = tor_strdup(address); + req = evdns_base_resolve_ipv6(the_evdns_base, + address, DNS_QUERY_NO_SEARCH, evdns_callback, a); + ++n_ipv6_requests_made; + if (!req) { + log_info(LD_EXIT, "eventdns rejected test address %s", + escaped_safe_str(address)); + tor_free(a); + } + } SMARTLIST_FOREACH_END(address); + } } #define N_WILDCARD_CHECKS 2 |