aboutsummaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-04-28 19:55:20 +0000
committerRoger Dingledine <arma@torproject.org>2004-04-28 19:55:20 +0000
commit25d5425fdb85071069dc8ec9dd02209b8205c8ea (patch)
treefbde549fd5dc6239592d88a7b59e386dfadb28dd /src/or
parentac622d94dcf5c00ab9264ec234ea6e9e1a2a28f9 (diff)
downloadtor-25d5425fdb85071069dc8ec9dd02209b8205c8ea.tar
tor-25d5425fdb85071069dc8ec9dd02209b8205c8ea.tar.gz
fix a bug in dns.c, note but don't fix another one
svn:r1735
Diffstat (limited to 'src/or')
-rw-r--r--src/or/connection_edge.c1
-rw-r--r--src/or/dns.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c
index 46e94acc8..3eb4d9ba6 100644
--- a/src/or/connection_edge.c
+++ b/src/or/connection_edge.c
@@ -834,6 +834,7 @@ circuit_get_open_circ_or_launch(connection_t *conn,
log_fn(LOG_WARN,"Advertised intro point '%s' is not known. Closing.", exitname);
return -1;
}
+ /* XXX if we failed, then refetch the descriptor */
log_fn(LOG_INFO,"Chose %s as intro point for %s.", exitname, conn->rend_query);
}
diff --git a/src/or/dns.c b/src/or/dns.c
index 6d7f36fc8..29ae69ced 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -474,6 +474,7 @@ int dnsworker_main(void *data) {
}
address[address_len] = 0; /* null terminate it */
+ /* XXX isn't this non-aligned uint32 going to cause problems? */
switch (tor_lookup_hostname(address, (uint32_t*)answer+1)) {
case 1:
log_fn(LOG_INFO,"Could not resolve dest addr %s (transient).",address);
@@ -482,9 +483,11 @@ int dnsworker_main(void *data) {
case -1:
log_fn(LOG_INFO,"Could not resolve dest addr %s (permanent).",address);
answer[0] = DNS_RESOLVE_FAILED_PERMANENT;
+ break;
case 0:
log_fn(LOG_INFO,"Resolved address '%s'.",address);
answer[0] = DNS_RESOLVE_SUCCEEDED;
+ break;
}
if(write_all(fd, answer, 5, 1) != 5) {
log_fn(LOG_ERR,"writing answer failed. Child exiting.");