diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-29 19:54:54 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-29 19:54:54 +0000 |
commit | 4cd93bd9ecb2e45319e944ceb234554b4b88bf06 (patch) | |
tree | 718af9ddc3d7dba9e001771bfba00c2ea663e61b /src/or/eventdns.c | |
parent | 1359871c1459a1de5a5e3bc55e752064b8ec4716 (diff) | |
download | tor-4cd93bd9ecb2e45319e944ceb234554b4b88bf06.tar.gz tor-4cd93bd9ecb2e45319e944ceb234554b4b88bf06.zip |
r13071@catbus: nickm | 2007-05-29 15:54:46 -0400
Aaargh. Revert accidentally-committed debugging code in last patch.
svn:r10400
Diffstat (limited to 'src/or/eventdns.c')
-rw-r--r-- | src/or/eventdns.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/or/eventdns.c b/src/or/eventdns.c index a536425216..a3bb3bf245 100644 --- a/src/or/eventdns.c +++ b/src/or/eventdns.c @@ -2658,23 +2658,14 @@ resolv_conf_parse_line(char *const start, int flags) { #define NEXT_TOKEN strtok_r(NULL, delims, &strtok_state) char *const first_token = strtok_r(start, delims, &strtok_state); - if (!first_token) { - log(EVDNS_LOG_WARN,"No token."); - return; - } - - - log(EVDNS_LOG_WARN,"Token is %s; flags is %d", first_token, flags); + if (!first_token) return; if (!strcmp(first_token, "nameserver") && (flags & DNS_OPTION_NAMESERVERS)) { const char *const nameserver = NEXT_TOKEN; struct in_addr ina; - log(EVDNS_LOG_WARN,"Parsed nameserver %s", nameserver); - if (inet_aton(nameserver, &ina)) { // address is valid - log(EVDNS_LOG_WARN,"Liked it."); evdns_nameserver_add(ina.s_addr); } } else if (!strcmp(first_token, "domain") && (flags & DNS_OPTION_SEARCH)) { |