diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-05-25 18:22:42 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-05-25 18:22:42 +0000 |
commit | 527fbc304e1512abd49c1c72d8cda9af78a7299b (patch) | |
tree | 7c7d4c2f33003deecc12f2f29888738c7f14d8b2 /src/or/dnsserv.c | |
parent | 5f226f130cd4f5685e41a84d7a7e6ad7f72f6d6a (diff) | |
download | tor-527fbc304e1512abd49c1c72d8cda9af78a7299b.tar.gz tor-527fbc304e1512abd49c1c72d8cda9af78a7299b.zip |
r12958@catbus: nickm | 2007-05-25 14:19:29 -0400
Fix more dnsport bugs: set state correctly, and actually cache the answers.
svn:r10328
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r-- | src/or/dnsserv.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c index 489dda73e8..89077342c5 100644 --- a/src/or/dnsserv.c +++ b/src/or/dnsserv.c @@ -90,10 +90,10 @@ evdns_server_callback(struct evdns_server_request *req, void *_data) return; } - /* XXXX020 Handle .onion and .exit. */ /* XXXX020 Send a stream event to the controller. */ conn = TO_EDGE_CONN(connection_new(CONN_TYPE_AP)); + conn->_base.state = AP_CONN_STATE_RESOLVE_WAIT; if (q->type == EVDNS_TYPE_A) conn->socks_request->command = SOCKS_COMMAND_RESOLVE; else @@ -104,8 +104,6 @@ evdns_server_callback(struct evdns_server_request *req, void *_data) conn->dns_server_request = req; - /* XXXX need to set state ?? */ - log_info(LD_APP, "Passing request for %s to rewrite_and_attach.", q->name); connection_ap_handshake_rewrite_and_attach(conn, NULL, NULL); /* Now the connection is marked if it was bad. */ |