diff options
Diffstat (limited to 'src/or/dnsserv.c')
-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 57c449311f..f8b5c3cdd2 100644 --- a/src/or/dnsserv.c +++ b/src/or/dnsserv.c @@ -271,6 +271,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, |