diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-01-15 13:11:10 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-01-15 13:11:10 -0500 |
commit | 60fa447afa22ac09d3b0ba44a7af343d9a42a5fa (patch) | |
tree | 9d98508fd9c5ef1774c3b5001011c55b44cf7c8f | |
parent | 3ae4df5cd7d26d4f090f8a35819a0ad1b29569e7 (diff) | |
parent | 9d133464c874191414dd51f546d09364419040cf (diff) | |
download | tor-60fa447afa22ac09d3b0ba44a7af343d9a42a5fa.tar.gz tor-60fa447afa22ac09d3b0ba44a7af343d9a42a5fa.zip |
Merge remote branch 'origin/maint-0.2.2'
-rw-r--r-- | src/or/dnsserv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c index d5faffb2c3..8222c8b45d 100644 --- a/src/or/dnsserv.c +++ b/src/or/dnsserv.c @@ -282,6 +282,7 @@ dnsserv_resolved(edge_connection_t *conn, name, 1, (char*)answer, ttl); } else if (answer_type == RESOLVED_TYPE_HOSTNAME && + answer_len < 256 && conn->socks_request->command == SOCKS_COMMAND_RESOLVE_PTR) { char *ans = tor_strndup(answer, answer_len); evdns_server_request_add_ptr_reply(req, NULL, |